From 42ab34d36e90dc11f1083a29833321e604103caa Mon Sep 17 00:00:00 2001 From: Phantop Date: Wed, 12 Jan 2022 02:19:21 -0500 Subject: [PATCH] sway config stuff and qute software rendering --- dot-config/gtk-3.0/settings.ini | 1 + dot-config/gtkrc | 1 + dot-config/qutebrowser/config.py | 2 +- dot-config/sway/config | 121 +++++++++++++++++++++++++++++++ 4 files changed, 124 insertions(+), 1 deletion(-) create mode 100644 dot-config/sway/config diff --git a/dot-config/gtk-3.0/settings.ini b/dot-config/gtk-3.0/settings.ini index 21f03d9..7433945 100644 --- a/dot-config/gtk-3.0/settings.ini +++ b/dot-config/gtk-3.0/settings.ini @@ -2,3 +2,4 @@ gtk-theme-name=Ant-Dracula gtk-cursor-theme-name=Haiku gtk-icon-theme-name=Haiku +gtk-font-name = Clear Sans 13 diff --git a/dot-config/gtkrc b/dot-config/gtkrc index fd9b8e4..e7ea43a 100644 --- a/dot-config/gtkrc +++ b/dot-config/gtkrc @@ -1,3 +1,4 @@ gtk-theme-name="Ant-Dracula" gtk-cursor-theme-name="Haiku" gtk-icon-theme-name="Haiku" +gtk-font-name = "Clear Sans 12" diff --git a/dot-config/qutebrowser/config.py b/dot-config/qutebrowser/config.py index c53e927..43c1713 100644 --- a/dot-config/qutebrowser/config.py +++ b/dot-config/qutebrowser/config.py @@ -18,7 +18,6 @@ c.confirm_quit = ["downloads"] c.content.cookies.accept = "no-3rdparty" #c.content.pdfjs = True c.fonts.default_size = "9pt" -c.qt.args += ["enable-gpu-rasterization"] c.qt.force_platformtheme = "gtk2" c.tabs.show = "multiple" @@ -62,6 +61,7 @@ if socket.gethostname() == "wheatley": c.url.start_pages = "covid19.rpi.edu/dailycheckin" c.url.searchengines['y'] = "vid.puffyan.us/search?q={}" c.fonts.default_size = "11pt" + c.qt.force_software_rendering = "chromium" #import dracula.draw #dracula.draw.blood(c, {'spacing': {'vertical': 1,'horizontal': 0}}) diff --git a/dot-config/sway/config b/dot-config/sway/config new file mode 100644 index 0000000..1d5073a --- /dev/null +++ b/dot-config/sway/config @@ -0,0 +1,121 @@ +set $mod Mod4 +set $left h +set $down j +set $up k +set $right l + +set $bg ~/Pictures/Wallpapers/Zelda/uejini.jxl +output * bg $bg fill +seat seat0 xcursor_theme Haiku + +# STARTUP APPS # +exec wlsunset -t 3500 +exec syncthing-gtk +exec nm-applet --indicator + +# IDLE AND LOCK # +exec swayidle -w \ +timeout 300 'swaylock -f -i $bg' \ +timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ +before-sleep 'swaylock -f -i $bg' + + +# INPUT CONFIG # +input type:touchpad { + natural_scroll enabled +} +bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% +bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% +bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle +bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle +bindsym XF86MonBrightnessDown exec light -U 5 +bindsym XF86MonBrightnessUp exec light -A 5 +bindsym XF86AudioPlay exec playerctl play-pause +bindsym XF86AudioNext exec playerctl next +bindsym XF86AudioPrev exec playerctl previous +bindsym XF86Search exec bemenu-run + +bindsym $mod+Return exec kitty +bindsym $mod+d exec fish -c launcher +bindsym $mod+q exec qutebrowser +bindsym $mod+c exec caja + + +bindsym $mod+Shift+q kill +bindsym $mod+Shift+c reload +bindsym $mod+Shift+e exec swaymsg exit + + +# MOVEMENT # +bindsym $mod+$left focus left +bindsym $mod+$down focus down +bindsym $mod+$up focus up +bindsym $mod+$right focus right + +bindsym $mod+Shift+$left move left +bindsym $mod+Shift+$down move down +bindsym $mod+Shift+$up move up +bindsym $mod+Shift+$right move right + + +# WORKSPACES # +bindsym $mod+1 workspace number 1 +bindsym $mod+2 workspace number 2 +bindsym $mod+3 workspace number 3 +bindsym $mod+4 workspace number 4 +bindsym $mod+5 workspace number 5 +bindsym $mod+6 workspace number 6 +bindsym $mod+7 workspace number 7 +bindsym $mod+8 workspace number 8 +bindsym $mod+9 workspace number 9 +bindsym $mod+0 workspace number 10 +bindsym $mod+Shift+1 move container to workspace number 1 +bindsym $mod+Shift+2 move container to workspace number 2 +bindsym $mod+Shift+3 move container to workspace number 3 +bindsym $mod+Shift+4 move container to workspace number 4 +bindsym $mod+Shift+5 move container to workspace number 5 +bindsym $mod+Shift+6 move container to workspace number 6 +bindsym $mod+Shift+7 move container to workspace number 7 +bindsym $mod+Shift+8 move container to workspace number 8 +bindsym $mod+Shift+9 move container to workspace number 9 +bindsym $mod+Shift+0 move container to workspace number 10 + + +bindsym $mod+b splith +bindsym $mod+v splitv +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +bindsym $mod+f fullscreen + +bindsym $mod+Shift+space floating toggle +bindsym $mod+space focus mode_toggle +floating_modifier $mod normal + +bindsym $mod+Shift+minus move scratchpad +bindsym $mod+minus scratchpad show + +bindsym $mod+r mode "resize" +mode "resize" { + bindsym $left resize shrink width 30px + bindsym $down resize grow height 30px + bindsym $up resize shrink height 30px + bindsym $right resize grow width 30px + bindsym Return mode "default" + bindsym Escape mode "default" +} + +default_border pixel +default_floating_border pixel +bar { + position top + status_command i3status + colors { + background #222D32 + focused_workspace #00A5BA #5294E2 #FFFFFF + inactive_workspace #222D32 #222D32 #FFFFFF + } + mode hide + font Monospace 12 +}