From fdad84741e83e160c7f1ef2fdc253924e92eba13 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Sat, 3 Oct 2020 10:40:23 -0500 Subject: [PATCH] sway things --- apps/de/sway/config | 4 +- apps/rofi/theme | 172 ++++++++++++++++++++++++++++++++++ env/laptop/sway/config.d/main | 2 + 3 files changed, 176 insertions(+), 2 deletions(-) create mode 100644 apps/rofi/theme diff --git a/apps/de/sway/config b/apps/de/sway/config index fc485b5..337aad3 100644 --- a/apps/de/sway/config +++ b/apps/de/sway/config @@ -118,7 +118,7 @@ bindsym $mod+Control+Alt+k gaps vertical current plus 5 # TODO: this should also reset the horizontal and vertical gaps? bindsym $mod+Control+equal gaps inner current set $default_gap -bindsym $mod+Control+Shift+l exec dm-tool lock +bindsym $mod+Control+Shift+l exec swaylock bindsym $mod+Control+Shift+s exec lock-and-sleep mode "resize" { @@ -158,10 +158,10 @@ client.focused #66d9ef #66d9ef #66d9ef #66d9ef #66d9ef client.focused_inactive #111111 #111111 #ffffff #111111 #111111 client.unfocused #111111 #111111 #ffffff #111111 #111111 +exec swayidle -w timeout 300 'swaylock -f -c 000000' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f -c 000000' exec mako exec_always makoctl reload exec_always notify-send -a "Sway" -i ~/.wallpaper "Sway configuration loaded." -exec libinput-gestures -c $DOTFILES_PATH/apps/de/libinput/sway-gestures.conf include $ENV_PATH/sway/config.d/* diff --git a/apps/rofi/theme b/apps/rofi/theme new file mode 100644 index 0000000..e5a7355 --- /dev/null +++ b/apps/rofi/theme @@ -0,0 +1,172 @@ +/** + * rofi -dump-theme output. + * Rofi version: 1.6.0 + **/ +* { + red: rgba ( 220, 50, 47, 100 % ); + selected-active-foreground: var(background); + lightfg: rgba ( 88, 104, 117, 100 % ); + separatorcolor: var(foreground); + urgent-foreground: var(red); + alternate-urgent-background: var(lightbg); + lightbg: rgba ( 238, 232, 213, 100 % ); + background-color: rgba ( 0, 0, 0, 0 % ); + border-color: var(foreground); + normal-background: var(background); + selected-urgent-background: var(red); + alternate-active-background: var(lightbg); + spacing: 2; + blue: rgba ( 38, 139, 210, 100 % ); + alternate-normal-foreground: var(foreground); + urgent-background: var(background); + selected-normal-foreground: var(lightbg); + active-foreground: var(blue); + background: rgba ( 253, 246, 227, 100 % ); + selected-active-background: var(blue); + active-background: var(background); + selected-normal-background: var(lightfg); + alternate-normal-background: var(lightbg); + foreground: rgba ( 0, 43, 54, 100 % ); + selected-urgent-foreground: var(background); + normal-foreground: var(foreground); + alternate-urgent-foreground: var(red); + alternate-active-foreground: var(blue); +} +element { + padding: 1px ; + spacing: 5px ; + border: 0; +} +element normal.normal { + background-color: var(normal-background); + text-color: var(normal-foreground); +} +element normal.urgent { + background-color: var(urgent-background); + text-color: var(urgent-foreground); +} +element normal.active { + background-color: var(active-background); + text-color: var(active-foreground); +} +element selected.normal { + background-color: var(selected-normal-background); + text-color: var(selected-normal-foreground); +} +element selected.urgent { + background-color: var(selected-urgent-background); + text-color: var(selected-urgent-foreground); +} +element selected.active { + background-color: var(selected-active-background); + text-color: var(selected-active-foreground); +} +element alternate.normal { + background-color: var(alternate-normal-background); + text-color: var(alternate-normal-foreground); +} +element alternate.urgent { + background-color: var(alternate-urgent-background); + text-color: var(alternate-urgent-foreground); +} +element alternate.active { + background-color: var(alternate-active-background); + text-color: var(alternate-active-foreground); +} +element-text { + background-color: rgba ( 0, 0, 0, 0 % ); + highlight: inherit; + text-color: inherit; +} +element-icon { + background-color: rgba ( 0, 0, 0, 0 % ); + size: 1.2000ch ; + text-color: inherit; +} +window { + padding: 0; + background-color: var(background); + border: 0; + font: 'Iosevka Term'; +} +mainbox { + padding: 0; + border: 0; +} +message { + padding: 1px ; + border-color: var(separatorcolor); + border: 0px ; +} +textbox { + text-color: var(foreground); +} +listview { + padding: 2px 0px 0px ; + scrollbar: false; + border-color: var(separatorcolor); + spacing: 5px ; + fixed-height: 0; + border: 0px ; +} +scrollbar { + width: 4px ; + padding: 0; + handle-width: 8px ; + border: 0; + handle-color: var(normal-foreground); +} +sidebar { + border-color: var(separatorcolor); + border: 2px dash 0px 0px ; +} +button { + spacing: 0; + text-color: var(normal-foreground); +} +button selected { + background-color: var(selected-normal-background); + text-color: var(selected-normal-foreground); +} +num-filtered-rows { + expand: false; + text-color: rgba ( 128, 128, 128, 100 % ); +} +num-rows { + expand: false; + text-color: rgba ( 128, 128, 128, 100 % ); +} +textbox-num-sep { + expand: false; + str: "/"; + text-color: rgba ( 128, 128, 128, 100 % ); +} +inputbar { + padding: 1px ; + spacing: 0px ; + text-color: var(normal-foreground); + children: [ prompt,textbox-prompt-colon,entry,num-filtered-rows,textbox-num-sep,num-rows,case-indicator ]; +} +case-indicator { + spacing: 0; + text-color: var(normal-foreground); +} +entry { + placeholder-color: rgba ( 128, 128, 128, 100 % ); + spacing: 0; + placeholder: "Type to filter"; + text-color: var(normal-foreground); +} +prompt { + spacing: 0; + text-color: var(normal-foreground); +} +textbox-prompt-colon { + margin: 0px 0.3000em 0.0000em 0.0000em ; + expand: false; + str: ":"; + text-color: inherit; +} +mode-switcher { + border: 0px ; +} diff --git a/env/laptop/sway/config.d/main b/env/laptop/sway/config.d/main index 2fd5683..696ef8d 100644 --- a/env/laptop/sway/config.d/main +++ b/env/laptop/sway/config.d/main @@ -34,3 +34,5 @@ input type:touchpad { input type:keyboard { xkb_options ctrl:nocaps } + +exec libinput-gestures -c $DOTFILES_PATH/apps/de/libinput/sway-gestures.conf