mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-25 13:42:23 +00:00
stuff/
This commit is contained in:
parent
eecf6b9165
commit
78c0efc22b
4 changed files with 41 additions and 11 deletions
|
@ -109,9 +109,6 @@
|
||||||
:capabilities default-capabilities}}))
|
:capabilities default-capabilities}}))
|
||||||
;:cmd ["/home/leon/coding/prs/rust-analyzer/target/release/rust-analyzer"]}}))
|
;:cmd ["/home/leon/coding/prs/rust-analyzer/target/release/rust-analyzer"]}}))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(let [sumneko_root_path (.. vim.env.HOME "/.local/share/lua-language-server")
|
(let [sumneko_root_path (.. vim.env.HOME "/.local/share/lua-language-server")
|
||||||
sumneko_binary (.. sumneko_root_path "/bin/Linux/lua-language-server")]
|
sumneko_binary (.. sumneko_root_path "/bin/Linux/lua-language-server")]
|
||||||
(init-lsp
|
(init-lsp
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
(telescope.setup
|
(telescope.setup
|
||||||
{:defaults {:mappings {:i {:<esc> actions.close}}
|
{:defaults {:mappings {:i {:<esc> actions.close}}
|
||||||
:file_ignore_patterns ["Cargo.lock" ".*.snap" "docs/theme/.*"]}
|
:file_ignore_patterns ["Cargo.lock" ".*.snap" "docs/theme/.*" "node%_modules/.*" "target/.*"]}
|
||||||
:extensions {:frecency {:persistent_filter false}}})
|
:extensions {:frecency {:persistent_filter false}}})
|
||||||
|
|
||||||
(telescope.load_extension "frecency")
|
(telescope.load_extension "frecency")
|
||||||
|
|
|
@ -41,6 +41,22 @@ exec swayidle -w \
|
||||||
exec mako
|
exec mako
|
||||||
exec libinput-gestures-setup start
|
exec libinput-gestures-setup start
|
||||||
|
|
||||||
|
set $WOBSOCK $XDG_RUNTIME_DIR/wob.sock
|
||||||
|
exec mkfifo $WOBSOCK && tail -f $WOBSOCK | wob
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
exec_always import-gsettings
|
||||||
|
|
||||||
|
|
||||||
|
# brightness and volume popup
|
||||||
|
bindsym XF86AudioRaiseVolume exec pamixer -ui 2 && pamixer --get-volume > $WOBSOCK
|
||||||
|
bindsym XF86AudioLowerVolume exec pamixer -ud 2 && pamixer --get-volume > $WOBSOCK
|
||||||
|
bindsym XF86AudioMute exec pamixer --toggle-mute && ( pamixer --get-mute && echo 0 > $WOBSOCK ) || pamixer --get-volume > $WOBSOCK
|
||||||
|
|
||||||
|
bindsym XF86MonBrightnessDown exec brightnessctl set 5%- | sed -En 's/.*\(([0-9]+)%\).*/\1/p' | tee /tmp/brightness > $WOBSOCK
|
||||||
|
bindsym XF86MonBrightnessUp exec brightnessctl set +5% | sed -En 's/.*\(([0-9]+)%\).*/\1/p' | tee /tmp/brightness > $WOBSOCK
|
||||||
|
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -49,10 +65,11 @@ gaps inner 10
|
||||||
default_border pixel 1
|
default_border pixel 1
|
||||||
|
|
||||||
|
|
||||||
|
client.focused "#ebdbb2" "#282828" "#8ec07c" "#8ec07c" "#ebdbb2"
|
||||||
|
client.unfocused "#1d2021" "#1d2021" "#ebdbb2" "#00000000"
|
||||||
|
client.focused_inactive "#282828" "#282828" "#8ec07c" "#00000000"
|
||||||
|
|
||||||
client.focused "#ebdbb2" "#ebdbb2" "#1d2021"
|
hide_edge_borders smart
|
||||||
client.unfocused "#1d2021" "#1d2021" "#1d2021"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -185,10 +202,11 @@ input "type:keyboard" {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bindsym --locked XF86MonBrightnessUp exec brightnessctl -e set 50+
|
#bindsym --locked XF86MonBrightnessUp exec brightnessctl -e set 50+
|
||||||
bindsym --locked XF86MonBrightnessDown exec brightnessctl -e set 50-
|
#bindsym --locked XF86MonBrightnessDown exec brightnessctl -e set 50-
|
||||||
bindsym --locked XF86AudioRaiseVolume exec pamixer -i 5
|
|
||||||
bindsym --locked XF86AudioLowerVolume exec pamixer -d 5
|
#bindsym --locked XF86AudioRaiseVolume exec pamixer -i 5
|
||||||
|
#bindsym --locked XF86AudioLowerVolume exec pamixer -d 5
|
||||||
|
|
||||||
bindsym $mod+Shift+S exec grimshot copy area
|
bindsym $mod+Shift+S exec grimshot copy area
|
||||||
bindsym $mod+Shift+b exec google-chrome-stable
|
bindsym $mod+Shift+b exec google-chrome-stable
|
||||||
|
|
15
sway/.config/sway/import-gsettings
Executable file
15
sway/.config/sway/import-gsettings
Executable file
|
@ -0,0 +1,15 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# usage: import-gsettings
|
||||||
|
config="${XDG_CONFIG_HOME:-$HOME/.config}/gtk-3.0/settings.ini"
|
||||||
|
if [ ! -f "$config" ]; then exit 1; fi
|
||||||
|
|
||||||
|
gnome_schema="org.gnome.desktop.interface"
|
||||||
|
gtk_theme="$(grep 'gtk-theme-name' "$config" | sed 's/.*\s*=\s*//')"
|
||||||
|
icon_theme="$(grep 'gtk-icon-theme-name' "$config" | sed 's/.*\s*=\s*//')"
|
||||||
|
cursor_theme="$(grep 'gtk-cursor-theme-name' "$config" | sed 's/.*\s*=\s*//')"
|
||||||
|
font_name="$(grep 'gtk-font-name' "$config" | sed 's/.*\s*=\s*//')"
|
||||||
|
gsettings set "$gnome_schema" gtk-theme "$gtk_theme"
|
||||||
|
gsettings set "$gnome_schema" icon-theme "$icon_theme"
|
||||||
|
gsettings set "$gnome_schema" cursor-theme "$cursor_theme"
|
||||||
|
gsettings set "$gnome_schema" font-name "$font_name"
|
Loading…
Reference in a new issue