From 5cb9d4ec56fff9bf15097862ea59e654ab19ae73 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Sun, 2 May 2021 17:13:20 -0500 Subject: [PATCH] A lot of random changes including qutebrowser search engine --- alacritty/alacritty.yml | 2 +- awesome/init.fnl | 1 + kanshi/config | 8 +++++++- qutebrowser/autoconfig.yml | 2 +- qutebrowser/config.py | 4 ++-- qutebrowser/qsettings/QtProject.conf | 4 ++-- rofi/launchers-git/blurry.rasi | 2 +- rofi/launchers-git/laptop.rasi | 2 +- scripts/wofipass | 2 +- sway/config | 18 +++++++++++++----- waybar/config | 4 ++-- wofi/config | 3 ++- wofi/style.css | 2 +- 13 files changed, 35 insertions(+), 19 deletions(-) diff --git a/alacritty/alacritty.yml b/alacritty/alacritty.yml index 07739e5..59e6ce7 100644 --- a/alacritty/alacritty.yml +++ b/alacritty/alacritty.yml @@ -318,7 +318,7 @@ colors: # # Window opacity as a floating point number from `0.0` to `1.0`. # The value `0.0` is completely transparent and `1.0` is opaque. -background_opacity: 0.80 +background_opacity: 0.95 #selection: #semantic_escape_chars: ",│`|:\"' ()[]{}<>\t" diff --git a/awesome/init.fnl b/awesome/init.fnl index 9e8bc98..73bd098 100644 --- a/awesome/init.fnl +++ b/awesome/init.fnl @@ -72,6 +72,7 @@ (if (= "syl\n" stdout) (global laptop true) (global laptop false)))) +(local laptop true) ;; Table of layouts to cover with awful.layout.inc, order matters. (set awful.layout.layouts [ diff --git a/kanshi/config b/kanshi/config index 496c445..d470105 100644 --- a/kanshi/config +++ b/kanshi/config @@ -1,3 +1,9 @@ -{ +profile laptop { output eDP-1 mode 3000x2000 position 0,0 scale 2 +} + +profile office { + output eDP-1 mode 3000x2000 position 0,0 scale 2 + output DP-2 mode 1366x768 position 1500,0 scale 1 + exec notify-send 'office monitors setup' } \ No newline at end of file diff --git a/qutebrowser/autoconfig.yml b/qutebrowser/autoconfig.yml index f2f2e89..2e08dec 100644 --- a/qutebrowser/autoconfig.yml +++ b/qutebrowser/autoconfig.yml @@ -8,7 +8,7 @@ config_version: 2 settings: content.geolocation: https://openweathermap.org: false - content.notifications: + content.notifications.enabled: https://jelly.cochrun.xyz: true https://nc.cochrun.xyz: false https://www.facebook.com: false diff --git a/qutebrowser/config.py b/qutebrowser/config.py index 5fa3183..d0f9fde 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -2126,7 +2126,7 @@ c.tabs.title.alignment = "center" ## qutebrowser`. ## Type: Dict c.url.searchengines = { - "DEFAULT": "https://search.cochrun.xyz/?q={}", + "DEFAULT": "https://search.tfcconnection.org/?q={}", "yt": "https://yewtu.be/search?q={}", "mel": "https://melpa.org/#/?q={}", "y": "https://www.youtube.com/results?search_query={}", @@ -2136,7 +2136,7 @@ c.url.searchengines = { "aw": "https://wiki.archlinux.org/index.php?search={}", "d": "https://duckduckgo.com/?q={}", "di": "https://duckduckgo.com/?q={}&iax=images&ia=images", - "s": "https://duckduckgo.com/?q={}&iax=images&ia=images", + "s": "https://search.tfcconnection.org/?q={}", } ## Page(s) to open at the start. diff --git a/qutebrowser/qsettings/QtProject.conf b/qutebrowser/qsettings/QtProject.conf index e6f7d98..af6fcb0 100644 --- a/qutebrowser/qsettings/QtProject.conf +++ b/qutebrowser/qsettings/QtProject.conf @@ -1,6 +1,6 @@ [FileDialog] -history=file:///home/chris/Videos/vimeo, file:///home/chris/Pictures/tfc, file:///home/chris/Pictures, file:///home/chris/Videos, file:///home/chris -lastVisited=file:///home/chris +history=file:///home/chris/Videos/vimeo, file:///home/chris/Pictures/tfc, file:///home/chris/Pictures, file:///home/chris/Videos, file:///home/chris, file:///home/chris/Downloads +lastVisited=file:///home/chris/Downloads qtVersion=5.15.2 shortcuts=file:, file:///home/chris sidebarWidth=116 diff --git a/rofi/launchers-git/blurry.rasi b/rofi/launchers-git/blurry.rasi index 13af5e1..b949c30 100644 --- a/rofi/launchers-git/blurry.rasi +++ b/rofi/launchers-git/blurry.rasi @@ -45,7 +45,7 @@ configuration { base0D: #57c7ff; base0E: #ff6ac1; base0F: #b2643c; - base00t: #282a3633; + base00t: #282a36BB; } window { diff --git a/rofi/launchers-git/laptop.rasi b/rofi/launchers-git/laptop.rasi index 061ca4b..f3a05db 100644 --- a/rofi/launchers-git/laptop.rasi +++ b/rofi/launchers-git/laptop.rasi @@ -10,6 +10,6 @@ configuration { - font: "VictorMono Nerd Font 30.0"; + font: "VictorMono Nerd Font 14.0"; } @import "/home/chris/.dotfiles/rofi/launchers-git/blurry.rasi" diff --git a/scripts/wofipass b/scripts/wofipass index bc3e5c0..19c3430 100755 --- a/scripts/wofipass +++ b/scripts/wofipass @@ -15,7 +15,7 @@ list_passwords() { } prompt='search for passwords...' -SECRET=$(list_passwords | wofi -i --width 700 --lines 20 --height 250 --prompt="${prompt}" --dmenu --cache-file ${CACHE}) +SECRET=$(list_passwords | wofi -i --prompt="${prompt}" --dmenu --cache-file ${CACHE}) # Ask whether pass, user or both are required diff --git a/sway/config b/sway/config index 209867b..aa7e193 100644 --- a/sway/config +++ b/sway/config @@ -9,7 +9,7 @@ set $up k set $right l set $term alacritty -set $menu wofi --show drun | xargs swaymsg exec -- +set $menu rofi -no-lazy-grab -show drun -modi drun | xargs swaymsg exec -- ### Output configuration output * bg ~/Pictures/wallpapers/RoyalKing.png fill @@ -45,12 +45,17 @@ input type:touchpad { } ### Style -gaps outer 15 +gaps outer 10 gaps inner 20 #smart_gaps on default_border none +border_images.focused /home/chris/.dotfiles/sway/rounded_and_shadows_custom.png +border_images.focused_inactive /home/chris/.dotfiles/sway/rounded_and_shadows_custom.png +border_images.unfocused /home/chris/.dotfiles/sway/rounded_and_shadows_custom.png +border_images.urgent /home/chris/.dotfiles/sway/rounded_and_shadows_custom.png + font pango: VictorMono Nerd Font 10 titlebar_border_thickness 1 ### Key bindings @@ -65,10 +70,10 @@ titlebar_border_thickness 1 # Start your launcher bindsym Menu exec $menu - bindsym $mod+Menu exec wofi --show run | xargs swaymsg exec -- + bindsym $mod+Menu exec rofi -no-lazy-grab -show run -modi run | xargs swaymsg exec -- #Pass - bindsym $mod+p exec wofipass + bindsym $mod+p exec rofi-rbw # Screenshot bindsym Print exec grim -g "${slurp}" - | wl-copy @@ -214,6 +219,8 @@ bindsym $mod+r mode "resize" set $mode_launcher Launcher bindsym $mod+o mode "$mode_launcher" +bindsym $mod+Ctrl+m exec makoctl dismiss -a + mode "$mode_launcher" { bindsym e exec emacsclient -c -a emacs & bindsym b exec qutebrowser @@ -235,7 +242,8 @@ bar { for_window [app_id="mpv"] floating enable for_window [app_id="imv"] floating enable for_window [app_id="dolphin"] floating enable -for_window [app_id="emacs"] opacity 0.90 +for_window [app_id="qutebrowser"] move container to workspace number 2 +for_window [app_id="emacs"] opacity 0.95 exec emacs --daemon exec mako diff --git a/waybar/config b/waybar/config index da39c86..300f851 100644 --- a/waybar/config +++ b/waybar/config @@ -46,11 +46,11 @@ "format": "{:%a %b %e, %l:%M %p}" }, "cpu": { - "format": "{usage}% ", + "format": "{usage}% ", "tooltip": false }, "memory": { - "format": "{}% " + "format": "{}% " }, "temperature": { // "thermal-zone": 2, diff --git a/wofi/config b/wofi/config index ec0fc91..2fdfa0f 100644 --- a/wofi/config +++ b/wofi/config @@ -1,4 +1,5 @@ width=60% height=40% columns=2 -parse_action=true \ No newline at end of file +parse_action=true +allow_images=true \ No newline at end of file diff --git a/wofi/style.css b/wofi/style.css index a1f622e..ff8cba9 100644 --- a/wofi/style.css +++ b/wofi/style.css @@ -15,7 +15,7 @@ @define-color base0E #ff6ac1; @define-color base0F #b2643c; @define-color basetransparent rgba(40, 42, 54, 0.0); -@define-color backtransparent rgba(40, 42, 54, 0.85); +@define-color backtransparent rgba(40, 42, 54, 0.80); window { margin: 100px; background-color: @backtransparent;