Compare commits

..

6 Commits

Author SHA1 Message Date
cea6deafec nvim: Tweak CoC completion keybindings 2022-08-23 15:30:52 +02:00
8b1b0915cb Set gtk theme on buran 2022-08-23 15:30:39 +02:00
a4d3d0113e Add volume scripts 2022-08-23 15:29:45 +02:00
a8b0fed1a1 fish: Configure buran
- Launch sway on login to tty 1
- Set QT theme
2022-08-23 15:29:20 +02:00
30748f41b0 screenlock: Configure buran 2022-08-23 15:28:37 +02:00
698612fb2a sway: Configure buran monitors 2022-08-23 15:28:17 +02:00
9 changed files with 65 additions and 12 deletions

View File

@ -7,6 +7,10 @@ set -x EDITOR nvim
set -x QT_STYLE_OVERRIDE Oxygen set -x QT_STYLE_OVERRIDE Oxygen
{% end %} {% end %}
{% if hostname == "buran" %}
set -x QT_QPA_PLATFORMTHEME qt5ct
{% end %}
{% if username == "u0_a213" %} {% if username == "u0_a213" %}
set -x USER hulthe set -x USER hulthe
{% end %} {% end %}
@ -48,3 +52,12 @@ fish_ssh_agent
zoxide init fish | source zoxide init fish | source
starship init fish | source starship init fish | source
{% if hostname == "buran" %}
# start sway if logging in on tty 1
if status is-login
if test $XDG_SESSION_TYPE = "tty" -a $XDG_VTNR = "1"
exec sway
end
end
{% end %}

View File

@ -0,0 +1,4 @@
{% if hostname == "buran" %}
[Settings]
gtk-application-prefer-dark-theme = true
{% end %}

View File

@ -1,4 +1,5 @@
{ {
"suggest.noselect": true,
"languageserver": { "languageserver": {
"rust": { "rust": {
"command": "rust-analyzer", "command": "rust-analyzer",

View File

@ -181,7 +181,7 @@ noremap <leader>h :noh<Enter>
noremap <c-r> :Rooter<Enter> noremap <c-r> :Rooter<Enter>
let g:rooter_manual_only = 1 let g:rooter_manual_only = 1
" Toggle between buffers " Toggle between begin
nnoremap <leader><leader> <c-^> nnoremap <leader><leader> <c-^>
" Managing tabs " Managing tabs
@ -200,6 +200,11 @@ nmap <leader>d :<C-u>CocList diagnostics<Enter>
nmap <leader>c :<C-u>CocList commands<Enter> nmap <leader>c :<C-u>CocList commands<Enter>
nmap <leader>s :<C-u>CocList -I symbols<Enter> nmap <leader>s :<C-u>CocList -I symbols<Enter>
nmap <leader>o :<C-u>CocOutline<Enter> nmap <leader>o :<C-u>CocOutline<Enter>
imap <expr><Enter> coc#pum#visible() ? coc#pum#confirm() : "\<Enter>"
imap <silent><expr> <TAB>
\ coc#pum#visible() ? coc#pum#next(1) :
\ coc#refresh()
imap <expr><S-TAB> coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>"
" grammarous " grammarous
nmap <leader>gc :GrammarousCheck<Enter> nmap <leader>gc :GrammarousCheck<Enter>

View File

@ -25,7 +25,18 @@ xwayland enable
### Output configuration ### Output configuration
# #
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) # Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
{% if hostname == "vostok" %}
output eDP-1 scale 1.5
output DP-1 scale 1.5
{% elif hostname == "buran" %}
output eDP-1 scale 2.0
output DP-1 scale 1.5
{% end %}
output * bg ~/.config/wallpapers/2560x1440/rocket.jpg fill output * bg ~/.config/wallpapers/2560x1440/rocket.jpg fill
# Window decoration # Window decoration
@ -36,14 +47,6 @@ client.unfocused #56636e #56636e #e0c1c1 #7c818c #56636e
client.urgent #7c818c #bf616a #ffffff #900000 #56636e client.urgent #7c818c #bf616a #ffffff #900000 #56636e
client.placeholder #000000 #0c0c0c #ffffff #000000 #56636e client.placeholder #000000 #0c0c0c #ffffff #000000 #56636e
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
output eDP-1 scale 1.5 position 3413,480
output DP-2 resolution 5120x2160 scale 1.5 position 0,0
### Autostart ### Autostart
exec nextcloud exec nextcloud
@ -117,8 +120,8 @@ input * {
bindsym XF86AudioLowerVolume exec voldown bindsym XF86AudioLowerVolume exec voldown
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
bindsym XF86MonBrightnessDown exec brightnessctl set 10%- bindsym XF86MonBrightnessDown exec brightnessctl --min-value=10 set 10%-
bindsym XF86MonBrightnessUp exec brightnessctl set +10% bindsym XF86MonBrightnessUp exec brightnessctl --min-value=10 set +10%
bindsym XF86AudioPlay exec playerctl play-pause bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioNext exec playerctl next bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous bindsym XF86AudioPrev exec playerctl previous

View File

@ -22,6 +22,16 @@ OPTIONAL_CMDS="grim lockscreen-blur"
SCREENCAP="grim -t ppm -" SCREENCAP="grim -t ppm -"
BLUR_FACTOR=40 BLUR_FACTOR=40
{% elif hostname == "buran" %}
# rendered for buran
LOCKPROG=swaylock
LOCKARGS="--config $HOME/.config/sway/swaylock.config --image $TMP_IMG"
LOCKARGS_NOCOOL="--config $HOME/.config/sway/swaylock.config --color 302f3b"
OPTIONAL_CMDS="grim lockscreen-blur"
SCREENCAP="grim -t ppm -"
BLUR_FACTOR=40
{% else %} {% else %}
echo "screenlock not configured for this system" echo "screenlock not configured for this system"
exit 1 exit 1

4
tree/.local/bin/voldown Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
pactl set-sink-volume @DEFAULT_SINK@ -5%
volshow

9
tree/.local/bin/volshow Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
alacritty -t "Volume" \
--class "volume_indicator" \
--config-file "$HOME/.config/alacritty/silent.yml" \
--command volume_indicator \
--cols 30 \
--rows 3 \
--timeout 1000

4
tree/.local/bin/volup Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
pactl set-sink-volume @DEFAULT_SINK@ +5%
volshow