mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-08-12 02:51:14 +10:00
Pulling then pushing.
This commit is contained in:
+7
-52
@@ -1,60 +1,15 @@
|
||||
#! /bin/sh
|
||||
# ____ _____
|
||||
# | _ \_ _| Derek Taylor (DistroTube)
|
||||
# | | | || | http://www.youtube.com/c/DistroTube
|
||||
# | |_| || | http://www.gitlab.com/dwt1/
|
||||
# |____/ |_|
|
||||
#
|
||||
# A customized bspwmrc for the bspwm window manager.
|
||||
# https://github.com/baskerville/sxhkd
|
||||
# https://github.com/baskerville/bspwm
|
||||
|
||||
#### AUTOSTART ####
|
||||
sxhkd &
|
||||
compton &
|
||||
nitrogen --restore &
|
||||
./.config/bspwm/panel.sh &
|
||||
|
||||
#### MONITORS ####
|
||||
bspc monitor DisplayPort-0 -d 1 2 3 4 5 6 7 8 9
|
||||
bspc monitor DisplayPort-1 -d 1 2 3 4 5 6 7 8 9
|
||||
bspc monitor HDMI-A-0 -d 1 2 3 4 5 6 7 8 9
|
||||
bspc monitor -d I II III IV V VI VII VIII IX X
|
||||
|
||||
#### BSPWM configuration ####
|
||||
#bspc config border_radius 8
|
||||
bspc config border_width 2
|
||||
bspc config window_gap 10
|
||||
bspc config top_padding 20
|
||||
bspc config bottom_padding 0
|
||||
bspc config left_padding 0
|
||||
bspc config right_padding 0
|
||||
bspc config single_monocle false
|
||||
bspc config click_to_focus true
|
||||
bspc config split_ratio 0.50
|
||||
bspc config borderless_monocle true
|
||||
bspc config gapless_monocle true
|
||||
bspc config focus_by_distance true
|
||||
bspc config focus_follows_pointer true
|
||||
bspc config history_aware_focus true
|
||||
bspc config remove_disabled_monitors true
|
||||
bspc config merge_overlapping_monitors true
|
||||
bspc config pointer_modifier mod4
|
||||
bspc config pointer_action1 move
|
||||
bspc config pointer_action2 resize_side
|
||||
bspc config pointer_action3 resize_corner
|
||||
|
||||
#### BSPWM coloring ####
|
||||
bspc config normal_border_color "#4c566a"
|
||||
bspc config active_border_color "#1e1e1e"
|
||||
bspc config focused_border_color "#5e81ac"
|
||||
bspc config presel_feedback_color "#5e81ac"
|
||||
bspc config urgent_border_color "#dd2727"
|
||||
|
||||
#polybar hidden when fullscreen for vlc, youtube, mpv ...
|
||||
#find out the name of your monitor with xrandr
|
||||
xdo below -t $(xdo id -n root) $(xdo id -a polybar-main_DisplayPort-0)
|
||||
xdo below -t $(xdo id -n root) $(xdo id -a polybar-main_DisplayPort-1)
|
||||
xdo below -t $(xdo id -n root) $(xdo id -a polybar-main_HDMI-A-0)
|
||||
bspc config border_width 2
|
||||
bspc config window_gap 12
|
||||
bspc config top_padding 20
|
||||
bspc config split_ratio 0.52
|
||||
bspc config borderless_monocle true
|
||||
bspc config gapless_monocle true
|
||||
|
||||
bspc rule -a Gimp desktop='^8' state=floating follow=on
|
||||
bspc rule -a Chromium desktop='^2'
|
||||
|
||||
@@ -37,8 +37,7 @@ opacity-rule = [ "99:name *?= 'Call'",
|
||||
"95:name *?= 'toot'",
|
||||
"95:name *?= 'nmon'",
|
||||
"95:name *?= 'httping'",
|
||||
"96:name *?= 'xmobar'",
|
||||
"95:class_g *?= 'emacs'",
|
||||
"92:name *?= 'xmobar'",
|
||||
"95:class_g *?= 'surf' && name *?='suckless.org'",
|
||||
"95:class_g *?= 'tabbed'",
|
||||
"95:name *?= 'newsboat'",
|
||||
|
||||
@@ -35,30 +35,40 @@ hc keybind $Mod-Shift-q quit
|
||||
hc keybind $Mod-Shift-r reload
|
||||
hc keybind $Mod-Shift-c close
|
||||
hc keybind $Mod-Return spawn st
|
||||
hc keybind $Mod-KP_Insert spawn dmenu_run -fn 'Mononoki Nerd Font:size=10' -nb '#292d3e' -nf '#bbc5ff' -sb '#82AAFF' -sf '#292d3e' -p 'dmenu:'
|
||||
|
||||
# Dmenu launcher
|
||||
hc keybind Mod1-Control-Return spawn dmenu_run -fn 'Mononoki Nerd Font:size=10' -nb '#292d3e' -nf '#bbc5ff' -sb '#82AAFF' -sf '#292d3e' -p 'dmenu:'
|
||||
# Apps Launched with <SUPER> + <KEYPAD 0-9>
|
||||
hc keybind $Mod-KP_End spawn st -e lynx -cfg=~/.lynx.cfg -lss=~/.lynx.lss http://www.distrowatch.com
|
||||
hc keybind $Mod-KP_Down spawn st -e sh ./scripts/googler-script.sh
|
||||
hc keybind $Mod-KP_Page_Down spawn st -e newsboat
|
||||
hc keybind $Mod-KP_Left spawn st -e rtv
|
||||
hc keybind $Mod-KP_Begin spawn st -e neomutt
|
||||
hc keybind $Mod-KP_Right spawn st -e twitch-curses
|
||||
hc keybind $Mod-KP_Home spawn st -e sh ./scripts/haxor-news.sh
|
||||
hc keybind $Mod-KP_Up spawn st -e toot curses
|
||||
hc keybind $Mod-KP_Page_Up spawn st -e sh ./scripts/tig-script.sh
|
||||
|
||||
# My dmenu scripts (Alt+Ctrl+Key)
|
||||
hc keybind Mod1-Control-e spawn ./.dmenu/dmenu-edit-configs.sh
|
||||
hc keybind Mod1-Control-m spawn ./.dmenu/dmenu-sysmon.sh
|
||||
hc keybind Mod1-Control-p spawn passmenu
|
||||
hc keybind Mod1-Control-s spawn ./.dmenu/dmenu-surfraw.sh
|
||||
hc keybind Mod1-Control-t spawn ./.dmenu/dmenu-trading.sh
|
||||
# Apps Launched with <SUPER> + <SHIFT> + <KEYPAD 0-9>
|
||||
hc keybind $Mod-Shift-KP_End spawn st -e ~/.config/vifm/scripts/vifmrun
|
||||
hc keybind $Mod-Shift-KP_Down spawn st -e joplin
|
||||
hc keybind $Mod-Shift-KP_Page_Down spawn st -e cmus
|
||||
hc keybind $Mod-Shift-KP_Left spawn st -e irssi
|
||||
hc keybind $Mod-Shift-KP_Begin spawn st -e rtorrent
|
||||
hc keybind $Mod-Shift-KP_Right spawn st -e youtube-viewer
|
||||
hc keybind $Mod-Shift-KP_Home spawn st -e ncpamixer
|
||||
hc keybind $Mod-Shift-KP_Up spawn st -e calcurse
|
||||
hc keybind $Mod-Shift-KP_Page_Up spawn st -e vim ~/.config/herbstluftwm/autostart
|
||||
|
||||
# My applications (Super+Alt+Key)
|
||||
hc keybind $Mod-Mod1-l spawn st -e lynx -cfg=~/.lynx.cfg -lss=~/.lynx.lss http://www.distrowatch.com
|
||||
hc keybind $Mod-Mod1-n spawn st -e newsboat
|
||||
hc keybind $Mod-Mod1-r spawn st -e rtv
|
||||
hc keybind $Mod-Mod1-e spawn st -e neomutt
|
||||
hc keybind $Mod-Mod1-m spawn st -e toot curses
|
||||
hc keybind $Mod-Mod1-t spawn st -e sh ./scripts/tig-script.sh
|
||||
hc keybind $Mod-Mod1-f spawn st -e ~/.config/vifm/scripts/vifmrun
|
||||
hc keybind $Mod-Mod1-j spawn st -e joplin
|
||||
hc keybind $Mod-Mod1-c spawn st -e cmus
|
||||
hc keybind $Mod-Mod1-i spawn st -e irssi
|
||||
hc keybind $Mod-Mod1-y spawn st -e youtube-viewer
|
||||
hc keybind $Mod-Mod1-a spawn st -e ncpamixer
|
||||
# Apps Launched with <SUPER> + <CONTROL> + <KEYPAD 0-9>
|
||||
hc keybind $Mod-Control-KP_End spawn st -e htop
|
||||
hc keybind $Mod-Control-KP_Down spawn st -e gtop
|
||||
hc keybind $Mod-Control-KP_Page_Down spawn st -e nmon
|
||||
hc keybind $Mod-Control-KP_Left spawn st -e glances
|
||||
hc keybind $Mod-Control-KP_Begin spawn st -e s-tui
|
||||
hc keybind $Mod-Control-KP_Right spawn st -e httping -KY --draw-phase localhost
|
||||
hc keybind $Mod-Control-KP_Home spawn st -e cmatrix -C cyan
|
||||
hc keybind $Mod-Control-KP_Up spawn st -e pianobar
|
||||
hc keybind $Mod-Control-KP_Page_Up spawn st -e wopr report.xml
|
||||
|
||||
# basic movement
|
||||
# focusing clients
|
||||
|
||||
@@ -24,7 +24,8 @@
|
||||
|
||||
nowplaying=`deadbeef --nowplaying "%n %a - %t - %b - %y" | sed -n '1p' | tr -d '"'`
|
||||
tracktime=`deadbeef --nowplaying "%l" | sed -n '1p'`
|
||||
playlist_num=`ls -l /home/dt/.config/deadbeef/playlists/* | wc -l | sed -n '1p'`
|
||||
playlist_dir=`/home/derek/.config/deadbeef/playlists/`
|
||||
playlist_num=`ls -l /home/derek/.config/deadbeef/playlists/* | wc -l | sed -n '1p'`
|
||||
|
||||
echo "<openbox_pipe_menu>"
|
||||
echo "<menu id=\"root-menu-325671\" label=\""Track Info"\">"
|
||||
@@ -34,7 +35,7 @@ echo "<separator/>"
|
||||
echo "<item label=\"Open Music Player\"><action name=\"Execute\"><execute>deadbeef</execute></action></item>"
|
||||
echo "</menu>"
|
||||
echo "<menu id=\"root-menu-325676\" label=\"Playlists ($playlist_num)\">"
|
||||
for file in $(ls /home/dt/.config/deadbeef/playlists/*.dbpl -1v); do
|
||||
for file in $(ls /home/derek/.config/deadbeef/playlists/*.dbpl -1v); do
|
||||
NAME=$(echo "$file" | rev | cut -d"/" -f1 | rev)
|
||||
echo "<item label=\"$NAME\"><action name=\"Execute\"><execute>deadbeef $file</execute></action></item>"
|
||||
done
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
'Active' - where the active window is -->
|
||||
</placement>
|
||||
<theme>
|
||||
<name>Adapta-Nokto</name>
|
||||
<name>Mabox-superdesk</name>
|
||||
<titleLayout>CSIML</titleLayout>
|
||||
<!--
|
||||
available characters are NDSLIMC, each can occur at most once.
|
||||
|
||||
+71
-46
@@ -127,7 +127,7 @@ font-4 = "Font Awesome 5 Brands:pixelsize=8;1"
|
||||
|
||||
modules-left = i3 xwindow
|
||||
modules-center =
|
||||
modules-right = arrow1 networkspeedup networkspeeddown arrow2 memory2 arrow3 cpu2 arrow2 pavolume arrow3 arch-aur-updates arrow2 date
|
||||
modules-right = arrow1 networkspeedup networkspeeddown arrow2 memory2 arrow3 cpu2 arrow4 pavolume arrow5 arch-aur-updates arrow6 date
|
||||
|
||||
separator =
|
||||
|
||||
@@ -302,13 +302,13 @@ tray-background = ${colors.background}
|
||||
monitor = ${env:MONITOR}
|
||||
;monitor-fallback = HDMI1
|
||||
width = 100%
|
||||
height = 20
|
||||
height = 30
|
||||
;offset-x = 1%
|
||||
;offset-y = 1%
|
||||
radius = 0.0
|
||||
fixed-center = true
|
||||
bottom = false
|
||||
separator =
|
||||
separator = |
|
||||
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
@@ -330,22 +330,21 @@ border-size = 0
|
||||
;border-bottom-size = 25
|
||||
border-color = #00000000
|
||||
|
||||
padding-left = 1
|
||||
padding-left = 0
|
||||
padding-right = 1
|
||||
|
||||
module-margin-left = 0
|
||||
module-margin-right = 0
|
||||
module-margin-left = 3
|
||||
module-margin-right = 3
|
||||
|
||||
;https://github.com/jaagr/polybar/wiki/Fonts
|
||||
font-0 = "UbuntuMono Nerd Font:size=10;2"
|
||||
font-1 = "UbuntuMono Nerd Font:size=16;3"
|
||||
font-2 = "Font Awesome 5 Free:style=Regular:pixelsize=8;1"
|
||||
font-3 = "Font Awesome 5 Free:style=Solid:pixelsize=8;1"
|
||||
font-4 = "Font Awesome 5 Brands:pixelsize=8;1"
|
||||
font-0 = "Noto Sans:size=10;0"
|
||||
font-1 = "FontAwesome:size=13;0"
|
||||
font-2 = "Noto Sans:size=10;0"
|
||||
font-3 = "Noto Sans Mono:size=10;0"
|
||||
|
||||
modules-left = bspwm xwindow
|
||||
modules-center =
|
||||
modules-right = arrow1 networkspeedup networkspeeddown arrow2 memory2 arrow3 cpu2 arrow2 pavolume arrow3 arch-aur-updates arrow2 date
|
||||
modules-center = kernel
|
||||
modules-right = pavolume memory2 cpu2 date
|
||||
|
||||
tray-detached = false
|
||||
tray-offset-x = 0
|
||||
@@ -354,7 +353,7 @@ tray-position = right
|
||||
tray-padding = 2
|
||||
tray-maxsize = 20
|
||||
tray-scale = 1.0
|
||||
tray-background = ${colors.background}
|
||||
tray-background = #2e3440
|
||||
|
||||
scroll-up = bspwm-desknext
|
||||
scroll-down = bspwm-deskprev
|
||||
@@ -412,7 +411,7 @@ font-4 = "Font Awesome 5 Brands:pixelsize=8;1"
|
||||
|
||||
modules-left = ewmh xwindow
|
||||
modules-center =
|
||||
modules-right = arrow1 networkspeedup networkspeeddown arrow2 memory2 arrow3 cpu2 arrow2 pavolume arrow3 arch-aur-updates arrow2 date
|
||||
modules-right = arrow1 networkspeedup networkspeeddown arrow2 memory2 arrow3 cpu2 arrow4 pavolume arrow5 arch-aur-updates arrow6 date
|
||||
|
||||
tray-detached = false
|
||||
tray-offset-x = 0
|
||||
@@ -567,9 +566,9 @@ ws-icon-4 = 5;
|
||||
ws-icon-5 = 6;
|
||||
ws-icon-6 = 7;
|
||||
ws-icon-7 = 8;
|
||||
ws-icon-8 = 9;
|
||||
ws-icon-9 = 10;
|
||||
ws-icon-default = " "
|
||||
;ws-icon-8 = 9;
|
||||
;ws-icon-9 = 10;
|
||||
;ws-icon-default = " "
|
||||
|
||||
|
||||
format = <label-state> <label-mode>
|
||||
@@ -577,7 +576,7 @@ format = <label-state> <label-mode>
|
||||
label-focused = %icon%
|
||||
label-focused-background = ${colors.background}
|
||||
label-focused-underline= #6790eb
|
||||
label-focused-padding = 2
|
||||
label-focused-padding = 4
|
||||
label-focused-foreground = ${colors.foreground}
|
||||
|
||||
label-occupied = %icon%
|
||||
@@ -631,7 +630,7 @@ format-background = ${colors.background}
|
||||
type = custom/text
|
||||
content = "%{T2} %{T-}"
|
||||
content-font = 2
|
||||
content-foreground = #A77AC4
|
||||
content-foreground = #C3E88D
|
||||
content-background = #292d3e
|
||||
|
||||
[module/arrow2]
|
||||
@@ -639,16 +638,42 @@ content-background = #292d3e
|
||||
type = custom/text
|
||||
content = "%{T2} %{T-}"
|
||||
content-font = 2
|
||||
content-foreground = #7197E7
|
||||
content-background = #A77AC4
|
||||
content-foreground = #82AAFF
|
||||
content-background = #C3E88D
|
||||
|
||||
[module/arrow3]
|
||||
; grey to Blue
|
||||
type = custom/text
|
||||
content = "%{T2} %{T-}"
|
||||
content-font = 2
|
||||
content-foreground = #A77AC4
|
||||
content-background = #7197E7
|
||||
content-foreground = #C792EA
|
||||
content-background = #82AAFF
|
||||
|
||||
[module/arrow4]
|
||||
; grey to Blue
|
||||
type = custom/text
|
||||
content = "%{T2} %{T-}"
|
||||
content-font = 2
|
||||
content-foreground = #FFE585
|
||||
content-background = #C792EA
|
||||
|
||||
[module/arrow5]
|
||||
; grey to Blue
|
||||
type = custom/text
|
||||
content = "%{T2} %{T-}"
|
||||
content-font = 2
|
||||
content-foreground = #F07178
|
||||
content-background = #FFE585
|
||||
|
||||
[module/arrow6]
|
||||
; grey to Blue
|
||||
type = custom/text
|
||||
content = "%{T2} %{T-}"
|
||||
content-font = 2
|
||||
content-foreground = #1D2330
|
||||
content-background = #F07178
|
||||
|
||||
|
||||
|
||||
################################################################################
|
||||
###############################################################################
|
||||
@@ -661,10 +686,10 @@ type = custom/script
|
||||
exec = ~/.config/polybar/scripts/check-all-updates.sh
|
||||
interval = 1000
|
||||
label = Updates: %output%
|
||||
format-foreground = #fefefe
|
||||
format-background = #A77AC4
|
||||
format-foreground = #ffffff
|
||||
format-background = #F07178
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = #fefefe
|
||||
format-prefix-foreground = #ffffff
|
||||
|
||||
|
||||
[module/aur-updates]
|
||||
@@ -842,10 +867,10 @@ type = internal/cpu
|
||||
; Seconds to sleep between updates
|
||||
; Default: 1
|
||||
interval = 1
|
||||
format-foreground = #fefefe
|
||||
format-background = #A77AC4
|
||||
format-foreground = ${colors.background}
|
||||
format-background = #C792EA
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = #fefefe
|
||||
format-prefix-foreground = ${colors.background}
|
||||
|
||||
label-font = 1
|
||||
|
||||
@@ -877,9 +902,9 @@ date-alt = " %a %b %d, %Y"
|
||||
time = %l:%M%p
|
||||
time-alt = %l:%M%p
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = #fefefe
|
||||
format-foreground = #fefefe
|
||||
format-background = #7197E7
|
||||
format-prefix-foreground = ${colors.foreground}
|
||||
format-foreground = ${colors.foreground}
|
||||
format-background = ${colors.background}
|
||||
label = "%date% %time% "
|
||||
|
||||
#################################################################
|
||||
@@ -1077,9 +1102,9 @@ label = %percentage_used%%
|
||||
|
||||
format = Mem <label>
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = #fefefe
|
||||
format-foreground = #fefefe
|
||||
format-background = #7197E7
|
||||
format-prefix-foreground = #292d3e
|
||||
format-foreground = #292d3e
|
||||
format-background = #82AAFF
|
||||
|
||||
################################################################################
|
||||
|
||||
@@ -1138,13 +1163,13 @@ type = internal/network
|
||||
;interface = wlp3s0
|
||||
;interface = enp14s0
|
||||
;interface = enp0s31f6
|
||||
interface = enp4s0
|
||||
interface = enp3s0
|
||||
label-connected = "%upspeed:7%"
|
||||
format-connected = <label-connected>
|
||||
format-connected-prefix = " "
|
||||
format-connected-prefix-foreground = #fefefe
|
||||
format-connected-foreground = #fefefe
|
||||
format-connected-background = #A77AC4
|
||||
format-connected-prefix-foreground = #292d3e
|
||||
format-connected-foreground = #292d3e
|
||||
format-connected-background = #C3E88D
|
||||
|
||||
################################################################################
|
||||
|
||||
@@ -1154,13 +1179,13 @@ type = internal/network
|
||||
;interface = wlp3s0
|
||||
;interface = enp14s0
|
||||
;interface = enp0s31f6
|
||||
interface = enp4s0
|
||||
interface = enp3s0
|
||||
label-connected = "%downspeed:7%"
|
||||
format-connected = <label-connected>
|
||||
format-connected-prefix = " "
|
||||
format-connected-prefix-foreground = #fefefe
|
||||
format-connected-foreground = #fefefe
|
||||
format-connected-background = #A77AC4
|
||||
format-connected-prefix-foreground = #292d3e
|
||||
format-connected-foreground = #292d3e
|
||||
format-connected-background = #C3E88D
|
||||
|
||||
################################################################################
|
||||
|
||||
@@ -1187,8 +1212,8 @@ click-right = exec pavucontrol
|
||||
click-left = ~/.config/polybar/scripts/pavolume.sh --togmute
|
||||
scroll-up = ~/.config/polybar/scripts/pavolume.sh --up
|
||||
scroll-down = ~/.config/polybar/scripts/pavolume.sh --down
|
||||
format-foreground = #fefefe
|
||||
format-background = #7197E7
|
||||
format-foreground = ${colors.background}
|
||||
format-background = #FFE585
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ The MODKEY is set to the Super key (aka the Windows key).
|
||||
|
||||
| Keybinding | Action |
|
||||
| :--- | :--- |
|
||||
| `ALT + CRTL + Enter` | opens run launcher (dmenu is the run launcher but can be easily changed) |
|
||||
| `MODKEY + Keypad Insert` | opens run launcher (dmenu is the run launcher but can be easily changed) |
|
||||
| `MODKEY + Enter` | opens terminal (st is the terminal but can be easily changed) |
|
||||
| `MODKEY + SHIFT + c` | closes window with focus |
|
||||
| `MODKEY + SHIFT + q` | quits qtile |
|
||||
|
||||
Regular → Executable
+190
-149
@@ -1,9 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# ____ _____
|
||||
# | _ \_ _| Derek Taylor (DistroTube)
|
||||
# | | | || | http://www.youtube.com/c/DistroTube
|
||||
# | |_| || | http://www.gitlab.com/dwt1/
|
||||
# |____/ |_|
|
||||
# | | | || | http://www.youtube.com/c/DistroTube
|
||||
# | |_| || | http://www.gitlab.com/dwt1/
|
||||
# |____/ |_|
|
||||
#
|
||||
# A customized config.py for Qtile window manager (http://www.qtile.org)
|
||||
# Modified by Derek Taylor (http://www.gitlab.com/dwt1/ )
|
||||
@@ -83,13 +83,13 @@ def init_keys():
|
||||
lazy.shutdown() # Shutdown Qtile
|
||||
),
|
||||
Key([mod], "w",
|
||||
lazy.to_screen(0) # Keyboard focus screen(0)
|
||||
lazy.to_screen(2) # Keyboard focus screen(0)
|
||||
),
|
||||
Key([mod], "e",
|
||||
lazy.to_screen(1) # Keyboard focus screen(1)
|
||||
lazy.to_screen(0) # Keyboard focus screen(1)
|
||||
),
|
||||
Key([mod], "r",
|
||||
lazy.to_screen(2) # Keyboard focus screen(2)
|
||||
lazy.to_screen(1) # Keyboard focus screen(2)
|
||||
),
|
||||
Key([mod, "control"], "k",
|
||||
lazy.layout.section_up() # Move up a section in treetab
|
||||
@@ -97,7 +97,7 @@ def init_keys():
|
||||
Key([mod, "control"], "j",
|
||||
lazy.layout.section_down() # Move down a section in treetab
|
||||
),
|
||||
### Window controls
|
||||
# Window controls
|
||||
Key(
|
||||
[mod], "k",
|
||||
lazy.layout.down() # Switch between windows in current stack pane
|
||||
@@ -149,7 +149,7 @@ def init_keys():
|
||||
lazy.layout.rotate(), # Swap panes of split stack (Stack)
|
||||
lazy.layout.flip() # Switch which side main pane occupies (XmonadTall)
|
||||
),
|
||||
### Stack controls
|
||||
# Stack controls
|
||||
Key(
|
||||
[mod], "space",
|
||||
lazy.layout.next() # Switch window focus to other pane(s) of stack
|
||||
@@ -158,121 +158,165 @@ def init_keys():
|
||||
[mod, "control"], "Return",
|
||||
lazy.layout.toggle_split() # Toggle between split and unsplit sides of stack
|
||||
),
|
||||
|
||||
### Dmenu Run Launcher
|
||||
# GUI Apps
|
||||
|
||||
Key(
|
||||
["mod1", "control"], "Return",
|
||||
lazy.spawn("dmenu_run -fn 'UbuntuMono Nerd Font:size=10' -nb '#282a36' -nf '#ffffff' -sb '#bd93f9' -sf '#282a36' -p 'dmenu:'")
|
||||
),
|
||||
|
||||
### Dmenu scripts launched with ALT + CTRL + KEY
|
||||
Key(
|
||||
["mod1", "control"], "e",
|
||||
lazy.spawn("./.dmenu/dmenu-edit-configs.sh")
|
||||
[mod], "b",
|
||||
lazy.function(app_or_group("WWW", "firefox"))
|
||||
),
|
||||
Key(
|
||||
["mod1", "control"], "m",
|
||||
lazy.spawn("./.dmenu/dmenu-sysmon.sh")
|
||||
[mod], "f",
|
||||
lazy.spawn("pcmanfm")
|
||||
),
|
||||
Key(
|
||||
["mod1", "control"], "p",
|
||||
lazy.spawn("passmenu")
|
||||
[mod], "g",
|
||||
lazy.spawn("geany")
|
||||
),
|
||||
# Apps Launched with <SUPER> + <KEYPAD 0-9>
|
||||
Key(
|
||||
[mod], "KP_Insert", # Keypad 0
|
||||
# lazy.spawncmd() # Qtile Run Dialog
|
||||
lazy.spawn("dmenu_run -fn 'UbuntuMono Nerd Font:size=10' -nb '#292d3e' -nf '#bbc5ff' -sb '#82AAFF' -sf '#292d3e' -p 'dmenu:'")
|
||||
),
|
||||
Key(
|
||||
["mod1", "control"], "r",
|
||||
lazy.spawn("./.dmenu/dmenu-reddio.sh")
|
||||
[mod], "KP_End", # Keypad 1
|
||||
lazy.spawn(myTerm+" -e lynx -cfg=~/.lynx.cfg -lss=~/.lynx.lss http://www.distrowatch.com")
|
||||
# lazy.spawn(myTerm+" -e lynx -cfg=~/.lynx.cfg -lss=~/.lynx.lss http://www.distrowatch.com")
|
||||
),
|
||||
Key(
|
||||
["mod1", "control"], "s",
|
||||
lazy.spawn("./.dmenu/dmenu-surfraw.sh")
|
||||
[mod], "KP_Down", # Keypad 2
|
||||
lazy.spawn(myTerm+" -e sh ./scripts/googler-script.sh")
|
||||
),
|
||||
Key(
|
||||
["mod1", "control"], "t",
|
||||
lazy.spawn("./.dmenu/dmenu-trading.sh")
|
||||
),
|
||||
Key(
|
||||
["mod1", "control"], "i",
|
||||
lazy.spawn("./.dmenu/dmenu-scrot.sh")
|
||||
),
|
||||
|
||||
### My applications launched with SUPER + ALT + KEY
|
||||
Key(
|
||||
[mod, "mod1"], "l",
|
||||
lazy.spawn(myTerm+" -e lynx -cfg=~/.lynx/lynx.cfg -lss=~/.lynx/lynx.lss gopher://distro.tube")
|
||||
),
|
||||
Key(
|
||||
[mod, "mod1"], "n",
|
||||
[mod], "KP_Page_Down", # Keypad 3
|
||||
lazy.spawn(myTerm+" -e newsboat")
|
||||
),
|
||||
Key(
|
||||
[mod, "mod1"], "r",
|
||||
[mod], "KP_Left", # Keypad 4
|
||||
lazy.spawn(myTerm+" -e rtv")
|
||||
),
|
||||
Key(
|
||||
[mod, "mod1"], "e",
|
||||
[mod], "KP_Begin", # Keypad 5
|
||||
lazy.spawn(myTerm+" -e neomutt")
|
||||
),
|
||||
Key(
|
||||
[mod, "mod1"], "m",
|
||||
[mod], "KP_Right", # Keypad 6
|
||||
lazy.spawn(myTerm+" -e twitch-curses")
|
||||
),
|
||||
Key(
|
||||
[mod], "KP_Home", # Keypad 7
|
||||
lazy.spawn(myTerm+" -e sh ./scripts/haxor-news.sh")
|
||||
),
|
||||
Key(
|
||||
[mod], "KP_Up", # Keypad 8
|
||||
lazy.spawn(myTerm+" -e sh ./scripts/toot.sh")
|
||||
),
|
||||
Key(
|
||||
[mod, "mod1"], "t",
|
||||
[mod], "KP_Page_Up", # Keypad 9
|
||||
lazy.spawn(myTerm+" -e sh ./scripts/tig-script.sh")
|
||||
),
|
||||
# Apps Launched with <SUPER> + <SHIFT> + <KEYPAD 0-9>
|
||||
Key(
|
||||
[mod, "mod1"], "f",
|
||||
[mod, "shift"], "KP_End", # Keypad 1
|
||||
lazy.spawn(myTerm+" -e sh ./.config/vifm/scripts/vifmrun")
|
||||
),
|
||||
Key(
|
||||
[mod, "mod1"], "j",
|
||||
[mod, "shift"], "KP_Down", # Keypad 2
|
||||
lazy.spawn(myTerm+" -e joplin")
|
||||
),
|
||||
Key(
|
||||
[mod, "mod1"], "c",
|
||||
[mod, "shift"], "KP_Page_Down", # Keypad 3
|
||||
lazy.spawn(myTerm+" -e cmus")
|
||||
),
|
||||
Key(
|
||||
[mod, "mod1"], "i",
|
||||
[mod, "shift"], "KP_Left", # Keypad 4
|
||||
lazy.spawn(myTerm+" -e irssi")
|
||||
),
|
||||
Key(
|
||||
[mod, "mod1"], "y",
|
||||
[mod, "shift"], "KP_Begin", # Keypad 5
|
||||
lazy.spawn(myTerm+" -e rtorrent")
|
||||
),
|
||||
Key(
|
||||
[mod, "shift"], "KP_Right", # Keypad 6
|
||||
lazy.spawn(myTerm+" -e youtube-viewer")
|
||||
),
|
||||
Key(
|
||||
[mod, "mod1"], "a",
|
||||
[mod, "shift"], "KP_Home", # Keypad 7
|
||||
lazy.spawn(myTerm+" -e ncpamixer")
|
||||
),
|
||||
Key(
|
||||
[mod, "shift"], "KP_Up", # Keypad 8
|
||||
lazy.spawn(myTerm+" -e calcurse")
|
||||
),
|
||||
Key(
|
||||
[mod, "shift"], "KP_Page_Up", # Keypad 9
|
||||
lazy.spawn(myTerm+" -e vim /home/dt/.config/qtile/config.py")
|
||||
),
|
||||
# Apps Launched with <SUPER> + <CONTROL> + <KEYPAD 0-9>
|
||||
Key(
|
||||
[mod, "control"], "KP_End", # Keypad 1
|
||||
lazy.spawn(myTerm+" -e htop")
|
||||
),
|
||||
Key(
|
||||
[mod, "control"], "KP_Down", # Keypad 2
|
||||
lazy.spawn(myTerm+" -e gtop")
|
||||
),
|
||||
Key(
|
||||
[mod, "control"], "KP_Page_Down", # Keypad 3
|
||||
lazy.spawn(myTerm+" -e nmon")
|
||||
),
|
||||
Key(
|
||||
[mod, "control"], "KP_Left", # Keypad 4
|
||||
lazy.spawn(myTerm+" -e glances")
|
||||
),
|
||||
Key(
|
||||
[mod, "control"], "KP_Begin", # Keypad 5
|
||||
lazy.spawn(myTerm+" -e s-tui")
|
||||
),
|
||||
Key(
|
||||
[mod, "control"], "KP_Right", # Keypad 6
|
||||
lazy.spawn(myTerm+" -e httping -KY --draw-phase localhost")
|
||||
),
|
||||
Key(
|
||||
[mod, "control"], "KP_Home", # Keypad 7
|
||||
lazy.spawn(myTerm+" -e cmatrix -C cyan")
|
||||
),
|
||||
Key(
|
||||
[mod, "control"], "KP_Up", # Keypad 8
|
||||
lazy.spawn(myTerm+" -e pianobar")
|
||||
),
|
||||
Key(
|
||||
[mod, "control"], "KP_Page_Up", # Keypad 9
|
||||
lazy.spawn(myTerm+" -e wopr report.xml")
|
||||
),
|
||||
]
|
||||
return keys
|
||||
|
||||
##### BAR COLORS #####
|
||||
|
||||
def init_colors():
|
||||
return [["#282a36", "#282a36"], # panel background
|
||||
return [["#292D3E", "#292D3E"], # panel background
|
||||
["#434758", "#434758"], # background for current screen tab
|
||||
["#ffffff", "#ffffff"], # font color for group names
|
||||
["#ff5555", "#ff5555"], # background color for layout widget
|
||||
["#D0D0D0", "#D0D0D0"], # font color for group names
|
||||
["#F07178", "#F07178"], # background color for layout widget
|
||||
["#000000", "#000000"], # background for other screen tabs
|
||||
["#A77AC4", "#A77AC4"], # dark green gradiant for other screen tabs
|
||||
["#50fa7b", "#50fa7b"], # background color for network widget
|
||||
["#7197E7", "#7197E7"], # background color for pacman widget
|
||||
["#9AEDFE", "#9AEDFE"], # background color for cmus widget
|
||||
["#AD69AF", "#AD69AF"], # dark green gradiant for other screen tabs
|
||||
["#C3E88D", "#C3E88D"], # background color for network widget
|
||||
["#C792EA", "#C792EA"], # background color for pacman widget
|
||||
["#9CC4FF", "#9CC4FF"], # background color for cmus widget
|
||||
["#000000", "#000000"], # background color for clock widget
|
||||
["#434758", "#434758"]] # background color for systray widget
|
||||
|
||||
##### GROUPS #####
|
||||
|
||||
def init_group_names():
|
||||
return [("WWW", {'layout': 'monadtall'}),
|
||||
("DEV", {'layout': 'monadtall'}),
|
||||
return [("DEV", {'layout': 'max'}),
|
||||
("WWW", {'layout': 'max'}),
|
||||
("SYS", {'layout': 'monadtall'}),
|
||||
("DOC", {'layout': 'monadtall'}),
|
||||
("VBOX", {'layout': 'monadtall'}),
|
||||
("CHAT", {'layout': 'monadtall'}),
|
||||
("MUS", {'layout': 'monadtall'}),
|
||||
("VID", {'layout': 'monadtall'}),
|
||||
("VBOX", {'layout': 'floating'}),
|
||||
("CHAT", {'layout': 'bsp'}),
|
||||
("MEDIA", {'layout': 'monadtall'}),
|
||||
("GFX", {'layout': 'floating'})]
|
||||
|
||||
def init_groups():
|
||||
@@ -286,7 +330,7 @@ def init_floating_layout():
|
||||
|
||||
def init_layout_theme():
|
||||
return {"border_width": 2,
|
||||
"margin": 4,
|
||||
"margin": 10,
|
||||
"border_focus": "AD69AF",
|
||||
"border_normal": "1D2330"
|
||||
}
|
||||
@@ -295,17 +339,10 @@ def init_border_args():
|
||||
return {"border_width": 2}
|
||||
|
||||
def init_layouts():
|
||||
return [#layout.MonadWide(**layout_theme),
|
||||
#layout.Bsp(**layout_theme),
|
||||
#layout.Stack(stacks=2, **layout_theme),
|
||||
#layout.Columns(**layout_theme),
|
||||
#layout.RatioTile(**layout_theme),
|
||||
#layout.VerticalTile(**layout_theme),
|
||||
#layout.Tile(shift_windows=True, **layout_theme),
|
||||
#layout.Matrix(**layout_theme),
|
||||
#layout.Zoomy(**layout_theme),
|
||||
return [layout.Max(**layout_theme),
|
||||
layout.MonadTall(**layout_theme),
|
||||
layout.Max(**layout_theme),
|
||||
layout.MonadWide(**layout_theme),
|
||||
layout.Bsp(**layout_theme),
|
||||
layout.TreeTab(
|
||||
font = "Ubuntu",
|
||||
fontsize = 10,
|
||||
@@ -321,13 +358,23 @@ def init_layouts():
|
||||
panel_width = 320,
|
||||
**layout_theme
|
||||
),
|
||||
layout.Slice(side="left", width=192, name="gimp", role="gimp-toolbox",
|
||||
fallback=layout.Slice(side="right", width=256, role="gimp-dock",
|
||||
fallback=layout.Stack(num_stacks=1, **border_args))),
|
||||
#layout.Stack(stacks=2, **layout_theme),
|
||||
#layout.Columns(**layout_theme),
|
||||
#layout.RatioTile(**layout_theme),
|
||||
#layout.VerticalTile(**layout_theme),
|
||||
#layout.Tile(shift_windows=True, **layout_theme),
|
||||
#layout.Matrix(**layout_theme),
|
||||
#layout.Zoomy(**layout_theme),
|
||||
layout.Floating(**layout_theme)]
|
||||
|
||||
##### WIDGETS #####
|
||||
|
||||
def init_widgets_defaults():
|
||||
return dict(font="Ubuntu Mono",
|
||||
fontsize = 12,
|
||||
fontsize = 11,
|
||||
padding = 2,
|
||||
background=colors[2])
|
||||
|
||||
@@ -344,15 +391,15 @@ def init_widgets_list():
|
||||
fontsize = 9,
|
||||
margin_y = 0,
|
||||
margin_x = 0,
|
||||
padding_y = 5,
|
||||
padding_y = 9,
|
||||
padding_x = 5,
|
||||
borderwidth = 1,
|
||||
active = colors[2],
|
||||
inactive = colors[2],
|
||||
rounded = False,
|
||||
highlight_method = "block",
|
||||
this_current_screen_border = colors[5],
|
||||
this_screen_border = colors [1],
|
||||
this_current_screen_border = colors[1],
|
||||
this_screen_border = colors [4],
|
||||
other_current_screen_border = colors[0],
|
||||
other_screen_border = colors[0],
|
||||
foreground = colors[2],
|
||||
@@ -375,126 +422,120 @@ def init_widgets_list():
|
||||
fontsize = 11,
|
||||
foreground = colors[5],
|
||||
background = colors[0],
|
||||
padding = 5
|
||||
padding = 6
|
||||
),
|
||||
widget.TextBox(
|
||||
text='',
|
||||
background = colors[0],
|
||||
foreground = colors[5],
|
||||
padding=0,
|
||||
fontsize=37
|
||||
widget.Image(
|
||||
scale = True,
|
||||
filename = "~/.config/qtile/bar06.png",
|
||||
background = colors[6]
|
||||
),
|
||||
widget.Systray(
|
||||
background=colors[10],
|
||||
padding = 6
|
||||
),
|
||||
widget.Image(
|
||||
scale = True,
|
||||
filename = "~/.config/qtile/bar02-b.png",
|
||||
background = colors[6]
|
||||
),
|
||||
widget.TextBox(
|
||||
text=" ↯",
|
||||
foreground=colors[2],
|
||||
background=colors[5],
|
||||
foreground=colors[0],
|
||||
background=colors[6],
|
||||
padding = 0,
|
||||
fontsize=14
|
||||
),
|
||||
widget.Net(
|
||||
interface = "enp4s0",
|
||||
foreground = colors[2],
|
||||
background = colors[5],
|
||||
padding = 5
|
||||
interface = "enp3s0",
|
||||
foreground = colors[0],
|
||||
background = colors[6],
|
||||
padding = 6
|
||||
),
|
||||
widget.TextBox(
|
||||
text='',
|
||||
background = colors[5],
|
||||
foreground = colors[7],
|
||||
padding=0,
|
||||
fontsize=37
|
||||
widget.Image(
|
||||
scale = True,
|
||||
filename = "~/.config/qtile/bar03.png",
|
||||
background = colors[3]
|
||||
),
|
||||
widget.TextBox(
|
||||
font="Ubuntu Bold",
|
||||
text=" ☵",
|
||||
padding = 5,
|
||||
foreground=colors[2],
|
||||
background=colors[7],
|
||||
padding = 6,
|
||||
foreground=colors[0],
|
||||
background=colors[3],
|
||||
fontsize=14
|
||||
),
|
||||
widget.CurrentLayout(
|
||||
foreground = colors[2],
|
||||
background = colors[7],
|
||||
padding = 5
|
||||
foreground = colors[0],
|
||||
background = colors[3],
|
||||
padding = 6
|
||||
),
|
||||
widget.TextBox(
|
||||
text='',
|
||||
background = colors[7],
|
||||
foreground = colors[5],
|
||||
padding=0,
|
||||
fontsize=37
|
||||
widget.Image(
|
||||
scale = True,
|
||||
filename = "~/.config/qtile/bar04.png",
|
||||
background = colors[7]
|
||||
),
|
||||
widget.TextBox(
|
||||
font="Ubuntu Bold",
|
||||
text=" ⟳",
|
||||
padding = 5,
|
||||
foreground=colors[2],
|
||||
background=colors[5],
|
||||
padding = 6,
|
||||
foreground=colors[0],
|
||||
background=colors[7],
|
||||
fontsize=14
|
||||
),
|
||||
widget.Pacman(
|
||||
execute = "urxvtc",
|
||||
update_interval = 1800,
|
||||
foreground = colors[2],
|
||||
background = colors[5]
|
||||
foreground = colors[0],
|
||||
background = colors[7]
|
||||
),
|
||||
widget.TextBox(
|
||||
text="Updates",
|
||||
padding = 5,
|
||||
foreground=colors[2],
|
||||
background=colors[5]
|
||||
padding = 6,
|
||||
foreground=colors[0],
|
||||
background=colors[7]
|
||||
),
|
||||
widget.TextBox(
|
||||
text='',
|
||||
background = colors[5],
|
||||
foreground = colors[7],
|
||||
padding=0,
|
||||
fontsize=37
|
||||
widget.Image(
|
||||
scale = True,
|
||||
filename = "~/.config/qtile/bar05.png",
|
||||
background = colors[8]
|
||||
),
|
||||
widget.TextBox(
|
||||
font="Ubuntu Bold",
|
||||
text=" ♫",
|
||||
padding = 5,
|
||||
foreground=colors[2],
|
||||
background=colors[7],
|
||||
padding = 6,
|
||||
foreground=colors[0],
|
||||
background=colors[8],
|
||||
fontsize=14
|
||||
),
|
||||
widget.Cmus(
|
||||
max_chars = 40,
|
||||
update_interval = 0.5,
|
||||
background=colors[7],
|
||||
play_color = colors[2],
|
||||
noplay_color = colors[2]
|
||||
foreground=colors[0],
|
||||
background = colors[8]
|
||||
),
|
||||
widget.TextBox(
|
||||
text='',
|
||||
background = colors[7],
|
||||
foreground = colors[5],
|
||||
padding=0,
|
||||
fontsize=37
|
||||
widget.Image(
|
||||
scale = True,
|
||||
filename = "~/.config/qtile/bar07.png",
|
||||
background = colors[9]
|
||||
),
|
||||
widget.TextBox(
|
||||
font="Ubuntu Bold",
|
||||
text=" 🕒",
|
||||
foreground=colors[2],
|
||||
background=colors[5],
|
||||
padding = 5,
|
||||
background=colors[9],
|
||||
padding = 6,
|
||||
fontsize=14
|
||||
),
|
||||
widget.Clock(
|
||||
foreground = colors[2],
|
||||
background = colors[5],
|
||||
background = colors[9],
|
||||
format="%A, %B %d - %H:%M"
|
||||
),
|
||||
widget.Sep(
|
||||
linewidth = 0,
|
||||
padding = 5,
|
||||
padding = 6,
|
||||
foreground = colors[0],
|
||||
background = colors[5]
|
||||
),
|
||||
widget.Systray(
|
||||
background=colors[0],
|
||||
padding = 5
|
||||
background = colors[9]
|
||||
),
|
||||
]
|
||||
return widgets_list
|
||||
@@ -510,9 +551,9 @@ def init_widgets_screen2():
|
||||
return widgets_screen2 # Monitor 2 will display all widgets in widgets_list
|
||||
|
||||
def init_screens():
|
||||
return [Screen(top=bar.Bar(widgets=init_widgets_screen1(), opacity=0.95, size=20)),
|
||||
Screen(top=bar.Bar(widgets=init_widgets_screen2(), opacity=0.95, size=20)),
|
||||
Screen(top=bar.Bar(widgets=init_widgets_screen1(), opacity=0.95, size=20))]
|
||||
return [Screen(top=bar.Bar(widgets=init_widgets_screen1(), opacity=0.95, size=25)),
|
||||
Screen(top=bar.Bar(widgets=init_widgets_screen2(), opacity=0.95, size=25)),
|
||||
Screen(top=bar.Bar(widgets=init_widgets_screen1(), opacity=0.95, size=25))]
|
||||
|
||||
##### FLOATING WINDOWS #####
|
||||
|
||||
@@ -534,7 +575,7 @@ def init_mouse():
|
||||
|
||||
if __name__ in ["config", "__main__"]:
|
||||
mod = "mod4" # Sets mod key to SUPER/WINDOWS
|
||||
myTerm = "alacritty" # My terminal of choice
|
||||
myTerm = "st" # My terminal of choice
|
||||
myConfig = "/home/dt/.config/qtile/config.py" # Qtile config file location
|
||||
|
||||
colors = init_colors()
|
||||
|
||||
@@ -9,7 +9,7 @@ allow_bold = true
|
||||
#audible_bell = false
|
||||
clickable_url = true
|
||||
#dynamic_title = true
|
||||
font = Cascadia Code 13
|
||||
font = UbuntuMono Nerd Font 13
|
||||
#fullscreen = true
|
||||
geometry = 700x520
|
||||
icon_name = terminal
|
||||
|
||||
+23
-19
@@ -1,18 +1,25 @@
|
||||
" ____ _____
|
||||
" | _ \_ _| Derek Taylor (DistroTube)
|
||||
" | | | || | http://www.youtube.com/c/DistroTube
|
||||
" | |_| || | http://www.gitlab.com/dwt1/
|
||||
" |____/ |_|
|
||||
|
||||
" vim: filetype=vifm :
|
||||
" My config file for the vifm terminal file manager.
|
||||
" Sample configuration file for vifm (last updated: 20 July, 2018)
|
||||
" You can edit this file by hand.
|
||||
" The " character at the beginning of a line comments out the line.
|
||||
" Blank lines are ignored.
|
||||
" The basic format for each item is shown with an example.
|
||||
|
||||
" ------------------------------------------------------------------------------
|
||||
|
||||
" This is the actual command used to start vi. The default is vim.
|
||||
" If you would like to use emacs or emacsclient, you can use them.
|
||||
" Since emacs is a GUI app and not a terminal app like vim, append the command
|
||||
" with an ampersand (&).
|
||||
" If you would like to use another vi clone such as Elvis or Vile
|
||||
" you will need to change this setting.
|
||||
|
||||
set vicmd=emacsclient\ -c\ &
|
||||
" set vicmd=vim
|
||||
set vicmd=vim
|
||||
" set vicmd=elvis\ -G\ termcap
|
||||
" set vicmd=vile
|
||||
|
||||
" This makes vifm perform file operations on its own instead of relying on
|
||||
" standard utilities like `cp`. While using `cp` and alike is a more universal
|
||||
@@ -194,8 +201,6 @@ filextype *.djvu
|
||||
|
||||
" Audio
|
||||
filetype *.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus
|
||||
\ {View using cmus}
|
||||
\ alacritty -e cmus %f &,
|
||||
\ {Play using ffplay}
|
||||
\ ffplay -nodisp -autoexit %c,
|
||||
\ {Play using MPlayer}
|
||||
@@ -223,10 +228,6 @@ fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
|
||||
|
||||
" Web
|
||||
filextype *.html,*.htm
|
||||
\ {Open with emacs}
|
||||
\ emacsclient -c %c &,
|
||||
\ {Open with vim}
|
||||
\ vim %c &,
|
||||
\ {Open with dwb}
|
||||
\ dwb %f %i &,
|
||||
\ {Open with firefox}
|
||||
@@ -245,7 +246,7 @@ fileviewer *.[1-8] man ./%c | col -b
|
||||
" Images
|
||||
filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm
|
||||
\ {View in sxiv}
|
||||
\ sxiv -ia %f &,
|
||||
\ sxiv -ia %c %d &,
|
||||
\ {View in imv}
|
||||
\ imv -b 1D2330 -d %d &,
|
||||
\ {View in feh}
|
||||
@@ -256,6 +257,10 @@ fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.xpm
|
||||
\ vifmimg draw %px %py %pw %ph %c
|
||||
\ %pc
|
||||
\ vifmimg clear
|
||||
" Get w3m image previews inside vifm
|
||||
" \ imgt %px %py %pw %ph %c
|
||||
" \ %pc
|
||||
" \ imgc %px %py %pw %ph NOT NEEDED IN XTERM
|
||||
fileviewer *.gif
|
||||
\ vifmimg gifpreview %px %py %pw %ph %c
|
||||
\ %pc
|
||||
@@ -436,12 +441,6 @@ set vifminfo=dhistory,savedirs,chistory,state,tui,shistory,
|
||||
|
||||
" Sample mappings
|
||||
|
||||
"Open all images in current directory in sxiv thumbnail mode
|
||||
nnoremap sx :!sxiv -t %d & <cr>
|
||||
|
||||
"Open selected images in gimp
|
||||
nnoremap gp :!gimp %f & <cr>
|
||||
|
||||
" Start shell in current directory
|
||||
nnoremap s :shell<cr>
|
||||
|
||||
@@ -452,6 +451,11 @@ nnoremap S :sort<cr>
|
||||
nnoremap w :view<cr>
|
||||
vnoremap w :view<cr>gv
|
||||
|
||||
" Open file in existing instance of gvim
|
||||
nnoremap o :!gvim --remote-tab-silent %f<cr>
|
||||
" Open file in new instance of gvim
|
||||
nnoremap O :!gvim %f<cr>
|
||||
|
||||
" Open file in the background using its default program
|
||||
nnoremap gb :file &<cr>l
|
||||
|
||||
|
||||
@@ -2,24 +2,18 @@
|
||||
-- install xmobar with these flags: --flags="with_alsa" --flags="with_mpd" --flags="with_xft" OR --flags="all_extensions"
|
||||
-- you can find weather location codes here: http://weather.noaa.gov/index.html
|
||||
|
||||
Config { font = "xft:Mononoki Nerd Font:pixelsize=12:antialias=true:hinting=true"
|
||||
, additionalFonts = [ "xft:FontAwesome:pixelsize=13" ]
|
||||
, bgColor = "#282A36"
|
||||
, fgColor = "#B45BCF"
|
||||
Config { font = "xft:Mononoki Nerd Font:pixelsize=14:antialias=true:hinting=true"
|
||||
, bgColor = "#292d3e"
|
||||
, fgColor = "#bbc5ff"
|
||||
, position = Top
|
||||
, lowerOnStart = True
|
||||
, hideOnStart = False
|
||||
, allDesktops = True
|
||||
, persistent = True
|
||||
, iconRoot = "/home/dt/.xmonad/xpm/" -- default: "."
|
||||
, commands = [ Run Date "%a, %b %d %Y, %H:%M:%S" "date" 10
|
||||
, Run Network "enp4s0" ["-t", "<icon=net_up_20.xpm/>up <rxbar> <icon=net_down_20.xpm/>dn <txbar>"] 10
|
||||
, Run Cpu ["-t", "<icon=cpu_20.xpm/> cpu <bar> (<total>%)","-H","50","--high","red"] 10
|
||||
, Run Memory ["-t", "<icon=memory-icon_20.xpm/> mem <usedbar> (<usedratio>%)"] 10
|
||||
, Run DiskU [("/", "<icon=harddisk-icon_20.xpm/> hdd <usedbar> (<used>)")] [] 3600
|
||||
, commands = [ Run Date "%a %b %_d %Y %H:%M:%S" "date" 10
|
||||
, Run UnsafeStdinReader
|
||||
]
|
||||
, sepChar = "%"
|
||||
, alignSep = "}{"
|
||||
, template = " <icon=haskell_20.xpm/> <fc=#666666>|</fc> %UnsafeStdinReader% }{ <fc=#FFB86C>%cpu%</fc> <fc=#FF5555>%memory%</fc> <fc=#82AAFF>%disku%</fc> <fc=#c3e88d>%enp4s0%</fc> <icon=calendar-clock-icon_20.xpm/> <fc=#8BE9FD>%date%</fc> "
|
||||
, template = "%UnsafeStdinReader% }{ <fc=#91A0BD> <fc=#fdf6e3>%date%</fc> </fc> "
|
||||
}
|
||||
|
||||
@@ -2,24 +2,18 @@
|
||||
-- install xmobar with these flags: --flags="with_alsa" --flags="with_mpd" --flags="with_xft" OR --flags="all_extensions"
|
||||
-- you can find weather location codes here: http://weather.noaa.gov/index.html
|
||||
|
||||
Config { font = "xft:Mononoki Nerd Font:pixelsize=12:antialias=true:hinting=true"
|
||||
, additionalFonts = [ "xft:FontAwesome:pixelsize=13" ]
|
||||
, bgColor = "#282A36"
|
||||
, fgColor = "#B45BCF"
|
||||
Config { font = "xft:Mononoki Nerd Font:pixelsize=14:antialias=true:hinting=true"
|
||||
, bgColor = "#292d3e"
|
||||
, fgColor = "#bbc5ff"
|
||||
, position = Top
|
||||
, lowerOnStart = True
|
||||
, hideOnStart = False
|
||||
, allDesktops = True
|
||||
, persistent = True
|
||||
, iconRoot = "/home/dt/.xmonad/xpm/" -- default: "."
|
||||
, commands = [ Run Date "%a, %b %d %Y, %H:%M:%S" "date" 10
|
||||
, Run Network "enp4s0" ["-t", "<icon=net_up_20.xpm/>up <rxbar> <icon=net_down_20.xpm/>dn <txbar>"] 10
|
||||
, Run Cpu ["-t", "<icon=cpu_20.xpm/> cpu <bar> (<total>%)","-H","50","--high","red"] 10
|
||||
, Run Memory ["-t", "<icon=memory-icon_20.xpm/> mem <usedbar> (<usedratio>%)"] 10
|
||||
, Run DiskU [("/", "<icon=harddisk-icon_20.xpm/> hdd <usedbar> (<used>)")] [] 3600
|
||||
, commands = [ Run Date "%a %b %_d %Y %H:%M:%S" "date" 10
|
||||
, Run UnsafeStdinReader
|
||||
]
|
||||
, sepChar = "%"
|
||||
, alignSep = "}{"
|
||||
, template = " <icon=haskell_20.xpm/> <fc=#666666>|</fc> %UnsafeStdinReader% }{ <fc=#FFB86C>%cpu%</fc> <fc=#FF5555>%memory%</fc> <fc=#82AAFF>%disku%</fc> <fc=#c3e88d>%enp4s0%</fc> <icon=calendar-clock-icon_20.xpm/> <fc=#8BE9FD>%date%</fc> "
|
||||
, template = "%UnsafeStdinReader% }{ <fc=#91A0BD> <fc=#fdf6e3>%date%</fc> </fc> "
|
||||
}
|
||||
|
||||
@@ -2,24 +2,23 @@
|
||||
-- install xmobar with these flags: --flags="with_alsa" --flags="with_mpd" --flags="with_xft" OR --flags="all_extensions"
|
||||
-- you can find weather location codes here: http://weather.noaa.gov/index.html
|
||||
|
||||
Config { font = "xft:Mononoki Nerd Font:pixelsize=12:antialias=true:hinting=true"
|
||||
Config { font = "xft:Mononoki Nerd Font:pixelsize=14:antialias=true:hinting=true"
|
||||
, additionalFonts = [ "xft:FontAwesome:pixelsize=13" ]
|
||||
, bgColor = "#282A36"
|
||||
, fgColor = "#B45BCF"
|
||||
, bgColor = "#292d3e"
|
||||
, fgColor = "#bbc5ff"
|
||||
, position = Top
|
||||
, lowerOnStart = True
|
||||
, hideOnStart = False
|
||||
, allDesktops = True
|
||||
, persistent = True
|
||||
, iconRoot = "/home/dt/.xmonad/xpm/" -- default: "."
|
||||
, commands = [ Run Date "%a, %b %d %Y, %H:%M:%S" "date" 10
|
||||
, Run Network "enp4s0" ["-t", "<icon=net_up_20.xpm/>up <rxbar> <icon=net_down_20.xpm/>dn <txbar>"] 10
|
||||
, Run Cpu ["-t", "<icon=cpu_20.xpm/> cpu <bar> (<total>%)","-H","50","--high","red"] 10
|
||||
, Run Memory ["-t", "<icon=memory-icon_20.xpm/> mem <usedbar> (<usedratio>%)"] 10
|
||||
, Run DiskU [("/", "<icon=harddisk-icon_20.xpm/> hdd <usedbar> (<used>)")] [] 3600
|
||||
, commands = [ Run Date "%a %b %_d %Y %H:%M:%S" "date" 10
|
||||
, Run Network "enp3s0" ["-t", "net: <rx>kb|<tx>kb"] 10
|
||||
, Run Cpu ["-t","cpu: <total>%","-H","50","--high","red"] 10
|
||||
, Run Memory ["-t","mem: <usedratio>%"] 10
|
||||
, Run DiskU [("/","hdd: <used>/<size>")] [] 3600
|
||||
, Run UnsafeStdinReader
|
||||
]
|
||||
, sepChar = "%"
|
||||
, alignSep = "}{"
|
||||
, template = " <icon=haskell_20.xpm/> <fc=#666666>|</fc> %UnsafeStdinReader% }{ <fc=#FFB86C>%cpu%</fc> <fc=#FF5555>%memory%</fc> <fc=#82AAFF>%disku%</fc> <fc=#c3e88d>%enp4s0%</fc> <icon=calendar-clock-icon_20.xpm/> <fc=#8BE9FD>%date%</fc> "
|
||||
, template = "%UnsafeStdinReader% }{ <fc=#91A0BD> <fc=#FFE585>%cpu%</fc> : <fc=#F07178>%memory%</fc> : <fc=#82AAFF>%disku%</fc> : <fc=#c3e88d>%enp3s0%</fc> : <fc=#A3F7FF>%date%</fc> </fc> "
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user