summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2020-04-28 11:50:25 -0400
committerluxagraf <sng@luxagraf.net>2020-04-28 11:50:25 -0400
commit5373184656c7ebb73e268e9033e9d8ff3eb5f3fd (patch)
tree326ed5c68848be4f9ada4b20b713377bee4b52e3 /.config
parent9cb49dc6454ed3d916d7bb0490275650d4a5e54c (diff)
added recent changes to sway config, ranger bookmarks and moving to firefox
Diffstat (limited to '.config')
-rw-r--r--.config/alacritty/alacritty.yml29
-rw-r--r--.config/qutebrowser/config.py36
-rw-r--r--.config/ranger/bookmarks10
-rw-r--r--.config/ranger/history50
-rw-r--r--.config/sway/config18
-rw-r--r--.config/waybar/config13
-rwxr-xr-x[-rw-r--r--].config/waybar/modules/storage.sh0
-rwxr-xr-x.config/waybar/modules/weather.sh6
8 files changed, 75 insertions, 87 deletions
diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml
index a7b4413..e21548b 100644
--- a/.config/alacritty/alacritty.yml
+++ b/.config/alacritty/alacritty.yml
@@ -153,7 +153,6 @@ font:
draw_bold_text_with_bright_colors: true
# Colors (Solarized Dark)
-# Colors (Solarized Dark)
colors:
# Default colors
primary:
@@ -182,6 +181,34 @@ colors:
cyan: '0x93a1a1'
white: '0xfdf6e3'
+ # Colors (Solarized Light)
+ #colors:
+ # # Default colors
+ # primary:
+ # background: '0xfdf6e3'
+ # foreground: '0x586e75'
+ #
+ # # Normal colors
+ # normal:
+ # black: '0x073642'
+ # red: '0xdc322f'
+ # green: '0x859900'
+ # yellow: '0xb58900'
+ # blue: '0x268bd2'
+ # magenta: '0xd33682'
+ # cyan: '0x2aa198'
+ # white: '0xeee8d5'
+ #
+ # # Bright colors
+ # bright:
+ # black: '0x002b36'
+ # red: '0xcb4b16'
+ # green: '0x586e75'
+ # yellow: '0x657b83'
+ # blue: '0x839496'
+ # magenta: '0x6c71c4'
+ # cyan: '0x93a1a1'
+ # white: '0xfdf6e3'
# Visual Bell
#
# Any time the BEL code is received, Alacritty "rings" the visual bell. Once
diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py
index 4877e36..613ede0 100644
--- a/.config/qutebrowser/config.py
+++ b/.config/qutebrowser/config.py
@@ -32,6 +32,7 @@ c.url.searchengines['w'] = 'https://secure.wikimedia.org/wikipedia/en/w/index.ph
c.url.searchengines['ap'] = 'https://www.archlinux.org/packages/?sort=&q={}'
c.url.searchengines['aw'] = 'https://www.amazon.com/s?k={}'
c.url.searchengines['w'] = 'https://www.google.com/search?q={}+site%3Awired.com'
+c.url.searchengines['gp'] = 'https://podcasts.google.com/?q={}'
# aliases
c.aliases['lux'] = 'open -t https://live.luxagraf.net/admin/'
@@ -90,6 +91,7 @@ config.bind(';yh', 'hint links --userscript youtube-dl')
# watch current or hinted video
config.bind(',yl', 'hint links spawn --detach mpv --force-window yes {hint-url}')
config.bind(',yv', 'spawn --detach mpv --force-window yes {url}')
+config.bind(',ys', 'spawn --userscript youtube-dl')
# open selected text in tab
config.bind (',f', 'open {primary}')
@@ -103,22 +105,22 @@ config.bind(',s', "jseval --quiet if(document.getSelection){s=document.getSelect
import sys, os
sys.path.append(os.path.join(sys.path[0], "jblock"))
-config.source("jblock/jblock/integrations/qutebrowser.py")
-config.set(
- "content.host_blocking.lists",
- [
- "https://easylist.to/easylist/easylist.txt",
- "https://easylist.to/easylist/easyprivacy.txt",
- "https://easylist.to/easylist/fanboy-annoyance.txt",
- "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters.txt",
- "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/annoyances.txt",
- "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/badware.txt",
- "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/privacy.txt",
- "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/resource-abuse.txt",
- "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/unbreak.txt",
- "https://www.malwaredomainlist.com/hostslist/hosts.txt",
- ],
-)
+#config.source("jblock/jblock/integrations/qutebrowser.py")
+#config.set(
+# "content.host_blocking.lists",
+# [
+# "https://easylist.to/easylist/easylist.txt",
+# "https://easylist.to/easylist/easyprivacy.txt",
+# "https://easylist.to/easylist/fanboy-annoyance.txt",
+# "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters.txt",
+# "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/annoyances.txt",
+# "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/badware.txt",
+# "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/privacy.txt",
+# "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/resource-abuse.txt",
+# "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/unbreak.txt",
+# "https://www.malwaredomainlist.com/hostslist/hosts.txt",
+# ],
+#)
solarized = {
'base03': '#002b36',
@@ -405,7 +407,7 @@ c.colors.statusbar.url.hover.fg = solarized['base2']
## Foreground color of the URL in the statusbar on successful load
## (http).
## Type: QssColor
-c.colors.statusbar.url.success.http.fg = solarized['base1']
+c.colors.statusbar.url.success.http.fg = solarized['violet']
## Foreground color of the URL in the statusbar on successful load
## (https).
diff --git a/.config/ranger/bookmarks b/.config/ranger/bookmarks
index f3ad05b..1415410 100644
--- a/.config/ranger/bookmarks
+++ b/.config/ranger/bookmarks
@@ -1,16 +1,14 @@
-':/home/lxf/writing/luxagraf/src/published
+':/home/lxf/writing/conde/wired
d:/home/lxf/documents
-p:/home/lxf/business/freelance writing
-u:/home/lxf/sites/usedbarcode.net
l:/home/lxf/writing/luxagraf
k:/home/lxf/pictures/inbox
e:/home/lxf/documents/recipes
-w:/home/lxf/writing/wired
-q:/home/lxf/sites/libregraf.net
+w:/home/lxf/writing/conde/wired
n:/home/lxf/notes
r:/home/lxf/documents/recipes
-a:/home/lxf/writing/ars-technica
+a:/home/lxf/writing/conde/ars-technica
s:/home/lxf/sites/luxagraf.net
i:/home/lxf
c:/home/lxf/pictures/nextcloud-ccg-phone
t:/home/lxf/temp
+p:/home/lxf/temp/wired
diff --git a/.config/ranger/history b/.config/ranger/history
deleted file mode 100644
index ef63e15..0000000
--- a/.config/ranger/history
+++ /dev/null
@@ -1,50 +0,0 @@
-open_with vim
-rename README
-rename DSC_1288_.JPG
-rename Frozen.2.2019.DVDScr.XVID.AC3.HQ.Hive-CM8.torrent
-rename X-100V Top Silver SOURCE Fujifilm.jpg
-rename X-100V Front Silver2 SOURCE Fujifilm.jpg
-rename X-100V Front Silver 2 SOURCE Fujifilm.jpg
-rename X-100V Front Silver SOURCE Fujifilm.jpg
-rename X100V Sample Image 01 SOURCE Scott Gilbertson.jpg
-rename 2 Stretches To Heal Plantar Fasciitis.mp4
-rename DSC_1288.JPG
-rename DSC_1488.JPG
-search store
-search olive
-rename export2.jpg
-rename export1.jpg
-rename Animal Jam SOURCE Animal Jam.svg
-rename DragonBox Math Kit SOURCE iOS App Store Screenshot.png
-rename PBS Apps SOURCE PBS Site Screenshot.png
-rename Starfall SOURCE Scott Gilbertson screenshot.png
-search thai
-search tif
-rename Polaroid Sample Images SOURCE Scott Gilbertson.jpg
-rename Planet Storytime SOURCE Planet Storytime.jpg
-search green
-search black
-search peas
-open_with%space1
-rename darktable-editing-moments-ep28-quick-edits.mkv
-rename Unbreakable - The Western States 100.mp4
-rename darktable ep 059 - Denoise (Profiled) in dt 3.0.mp4
-rename .rtorrent.rc
-search rtorrent
-search torrent
-mkdir reading
-search gluten
-open_with%space
-cd recipes/
-set line_numbers false
-set line_numbers relative
-set line_numbers absolute
-shell cat %s
-search cong
-mkdir test
-
-delete
-rename Proud Grill Skewers SOURCE Proud Grill.jpg
-rename Proud Grill Scrubber SOURCE Proud Grill.jpg
-rename desktop042020.png
-open_with 1
diff --git a/.config/sway/config b/.config/sway/config
index 3d0d7c6..804d73f 100644
--- a/.config/sway/config
+++ b/.config/sway/config
@@ -115,12 +115,14 @@ for_window [title="Oracle VM VirtualBox Manager"] floating enable
for_window [class="^Pcmanfm"] floating enable
for_window [class="^lxf$"] floating enable
for_window [app_id="darktable"] border none
+for_window [class="darktable"] border none
for_window [app_id="python3"] border none, floating enable
for_window [app_id="org.qutebrowser.qutebrowser"] border none
for_window [app_id="kitty"] border none
for_window [app_id="qutebrowser"] border none
for_window [class="^URxvt"] border none
for_window [app_id="firefoxdeveloperedition"] border none
+for_window [class="firefoxdeveloperedition"] border none
for_window [class="^Vivaldi"] border none
for_window [class="^qutebrowser"] border none
for_window [app_id="^Alacritty"] border none
@@ -137,7 +139,7 @@ assign [class="qutebrowser"] $ws2
assign [app_id="org.qutebrowser.qutebrowser"] $ws2
assign [class="Firefox Developer"] $ws4
assign [class="Slack"] $ws6
-assign [class="Vivaldi"] $ws4
+assign [class="Vivaldi"] $ws2
assign [class="Darktable"] $ws3
assign [app_id="darktable"] $ws3
assign [title="Oracle VM VirtualBox Manager"] $ws4
@@ -195,11 +197,11 @@ input "1:1:AT_Translated_Set_2_keyboard" {
repeat_delay 250
repeat_rate 25
}
-exec xrdb ~/.Xresources
-#exec --no-startup-id redshift-gtk -l 35.052234:-118.243685 -m randr -t 5700:3600 &
-exec --no-startup-id qutebrowser &
-exec --no-startup-id urxvt &
-#exec --no-startup-id alacritty &
+#exec xrdb ~/.Xresources
+exec --no-startup-id redshift-gtk -l 35.052234:-118.243685 -m randr -t 5700:3600 &
+exec --no-startup-id firefox-developer-edition &
+#exec --no-startup-id urxvt &
+exec --no-startup-id alacritty &
exec --no-startup-id nextcloud &
#exec --no-startup-id xset r rate 250 25 &
#exec --no-startup-id xset -b
@@ -207,12 +209,16 @@ exec --no-startup-id nextcloud &
# clipboard manager
exec wl-paste -t text --watch clipman store --max-items=60 --histpath="~/.local/share/clipman-primary.json"
+# exec wl-paste -w 'wl-paste >> ~/.clipboard'
bindsym $mod+h exec clipman pick --tool="wofi" --max-items=30 --histpath="~/.local/share/clipman-primary.json"
+# app launcher
bindsym $mod+Space exec alacritty --class 'launcher' --command bash -c 'compgen -c | sort -u | fzf | xargs -r swaymsg -t command exec'
+# pass chooser
bindsym $mod+p exec alacritty --class 'launcher' --command bash -c 'pass clip --fzf | xargs -r swaymsg -t command exec'
+#snippet manager
bindsym $mod+s exec alacritty --class 'launcher' --command bash -c 'pet exec | wl-copy | xargs -r swaymsg -t command exec'
for_window [app_id="^launcher$"] floating enable, border none, resize set width 25 ppt height 20 ppt, move position 0 px 0 px
diff --git a/.config/waybar/config b/.config/waybar/config
index 7fc5a76..49be1fd 100644
--- a/.config/waybar/config
+++ b/.config/waybar/config
@@ -4,7 +4,7 @@
"height": 24,
"modules-left": ["sway/workspaces", "sway/mode"],
"modules-center": [""],
- "modules-right": ["mpd", "network", "idle_inhibitor", "battery", "memory", "tray", "clock"],
+ "modules-right": ["mpd", "network", "idle_inhibitor", "battery", "custom/storage", "cpu", "memory", "custom/weather", "tray", "clock"],
"sway/mode": {
"format": " {}"
},
@@ -18,7 +18,7 @@
"on-click": "~/./bin/cal.sh"
},
"battery": {
- "format": "{capacity}% {icon} | ",
+ "format": "| {capacity}% {icon} | ",
"format-alt": "{time} {icon}",
"format-icons": ["", "", "", "", ""],
"format-charging": "{capacity}% CHR",
@@ -39,7 +39,6 @@
"tooltip-format-wifi": "{essid} ({signalStrength}%) ",
"tooltip-format-ethernet": "{ifname} ",
"tooltip-format-disconnected": "Disconnected",
- "max-length": 50,
"on-click": "alacritty -e nmtui",
"tooltip": false
},
@@ -70,12 +69,12 @@
"on-click-right": "mpc next"
},
"custom/storage": {
- "format": "{} ",
+ "format": "{}  |",
"format-alt": "{percentage}% ",
"format-alt-click": "click-right",
"return-type": "json",
"interval": 60,
- "exec": "~/.config/waybar/modules/storage.sh"
+ "exec": "$HOME/.config/waybar/modules/storage.sh"
},
"backlight": {
"format": "{icon}",
@@ -86,12 +85,12 @@
"on-scroll-up": "light -U 1"
},
"custom/weather": {
- "format": "{}",
+ "format": "{} |",
"format-alt": "{alt}: {}",
"format-alt-click": "click-right",
"interval": 1800,
"return-type": "json",
- "exec": "~/.config/waybar/modules/weather.sh",
+ "exec": "$HOME/.config/waybar/modules/weather.sh",
"exec-if": "ping wttr.in -c1"
},
"idle_inhibitor": {
diff --git a/.config/waybar/modules/storage.sh b/.config/waybar/modules/storage.sh
index d495da4..d495da4 100644..100755
--- a/.config/waybar/modules/storage.sh
+++ b/.config/waybar/modules/storage.sh
diff --git a/.config/waybar/modules/weather.sh b/.config/waybar/modules/weather.sh
new file mode 100755
index 0000000..d64acd0
--- /dev/null
+++ b/.config/waybar/modules/weather.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+w=$(curl -s wttr.in/ahn?format="%l:+%c+%t+%C+%w+%h+%m")
+w=${w:7}
+w="$(echo -e "${w}" | sed -e 's/^[[:space:]]*//')"
+m=$(python ~/bin/moonphase-waybar.py)
+echo "{\"text\":\""$w ""$m"\", \"tooltip\":\""tooltip"\", \"class\":\""lxf-weather"\"}"