Starting my herbstluft journey.

This commit is contained in:
Derek Taylor 2019-03-16 12:25:29 -05:00
parent 56c43883fe
commit 56c05fa166
11 changed files with 84 additions and 51 deletions

View File

@ -14,8 +14,8 @@ Xft.hintstyle: hintfull
Xft.lcdfilter: lcdfilter
XTerm*renderFont: true
XTerm*faceName: xft:UbuntuMono Nerd Font
XTerm*faceSize: 13
XTerm*faceName: xft:Mononoki Nerd Font
XTerm*faceSize: 12
XTerm*utf8: 2
XTerm*locale: true

View File

@ -5,7 +5,7 @@
# |____/ |_|
EDITOR=vim
export TERM="xterm-256color"
export TERM="st-256color"
[[ $- != *i* ]] && return

View File

@ -5,7 +5,7 @@ shadow-offset-x = 1;
shadow-offset-y = 1;
shadow-opacity = 0.3;
shadow-ignore-shaped = false;
shadow-exclude = [ "name = 'Notification'", "override_redirect = 1 && !WM_CLASS@:s", "class_g ?= 'Dmenu'", "_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'", "_GTK_FRAME_EXTENTS@:c", "class_g ?= 'i3-frame', "class_g ?= 'trayer'" ];
shadow-exclude = [ "name = 'Notification'", "override_redirect = 1 && !WM_CLASS@:s", "class_g ?= 'Dmenu'", "_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'", "_GTK_FRAME_EXTENTS@:c", "class_g ?= 'i3-frame'", "class_g ?= 'trayer'" ];
menu-opacity = 1.0;
inactive-opacity = 1.0;
active-opacity = 1;
@ -37,7 +37,7 @@ opacity-rule = [ "99:name *?= 'Call'",
"95:name *?= 'toot'",
"95:name *?= 'nmon'",
"95:name *?= 'httping'",
"85:name *?= 'xmobar'",
"92:name *?= 'xmobar'",
"95:class_g *?= 'surf' && name *?='suckless.org'",
"95:class_g *?= 'tabbed'",
"95:name *?= 'newsboat'",

View File

@ -9,9 +9,8 @@ hc() {
hc emit_hook reload
xsetroot -solid '#5A8E3A'
nitrogen --restore
urxvtd -q -o -f
compton -C ~/.config/compton/compton.conf &
nitrogen --restore &
# remove all existing keybindings
hc keyunbind --all
@ -24,7 +23,41 @@ Mod=Mod4 # Use the super key as the main modifier
hc keybind $Mod-Shift-q quit
hc keybind $Mod-Shift-r reload
hc keybind $Mod-Shift-c close
hc keybind $Mod-Return spawn urxvtc
hc keybind $Mod-Return spawn st
hc keybind $Mod-KP_Insert spawn dmenu_run -fn 'UbuntuMono Nerd Font:size=10' -nb '#292d3e' -nf '#bbc5ff' -sb '#82AAFF' -sf '#292d3e' -p 'dmenu:'
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
hc keybind $Mod-Shift-KP_End spawn st -e ~/.config/vifm/scripts/vifmrun
hc keybind $Mod-Shift-KP_Down spawn st -e htop
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
hc keybind $Mod-Control-KP_End spawn st -e htop
hc keybind $Mod-Control-KP_Down spawn st -e glances
hc keybind $Mod-Control-KP_Page_Down spawn st -e nmon
hc keybind $Mod-Control-KP_Left spawn st -e httping -KY --draw-phase localhost
hc keybind $Mod-Control-KP_Begin spawn st -e s-tui
hc keybind $Mod-Control-KP_Right spawn st -e pianobar
hc keybind $Mod-Control-KP_Home spawn st -e cmatrix -C cyan
hc keybind $Mod-Control-KP_Up spawn st -e joplin
hc keybind $Mod-Control-KP_Page_Up spawn st -e wopr report.xml
# basic movement
# focusing clients
@ -126,7 +159,7 @@ hc set frame_gap 4
hc attr theme.active.color '#9fbc00'
hc attr theme.normal.color '#454545'
hc attr theme.urgent.color orange
hc attr theme.inner_width 1
hc attr theme.inner_width 0
hc attr theme.inner_color black
hc attr theme.border_width 3
hc attr theme.floating.border_width 4
@ -162,7 +195,7 @@ herbstclient set tree_style '╾│ ├└╼─┐'
# hc set_monitors 1280x1024+0+0 1280x1024+1280+0
# or simply:
# hc detect_monitors
hc set_monitors 1920x1054+1920+26 1920x1054+3840+26 1920x1054+0+26
hc set_monitors 1920x1058+1920+22 1920x1058+3840+22 1920x1058+0+22
# find the panel
panel=~/.config/herbstluftwm/panel.sh

View File

@ -64,104 +64,104 @@ def init_keys():
keys = [
Key(
[mod], "Return",
lazy.spawn(myTerm) # Open terminal
lazy.spawn(myTerm) # Open terminal
),
Key(
[mod], "Tab",
lazy.next_layout() # Toggle through layouts
lazy.next_layout() # Toggle through layouts
),
Key(
[mod, "shift"], "c",
lazy.window.kill() # Kill active window
lazy.window.kill() # Kill active window
),
Key(
[mod, "shift"], "r",
lazy.restart() # Restart Qtile
lazy.restart() # Restart Qtile
),
Key(
[mod, "shift"], "q",
lazy.shutdown() # Shutdown Qtile
lazy.shutdown() # Shutdown Qtile
),
Key([mod], "i",
lazy.to_screen(2) # Keyboard focus screen(0)
Key([mod], "w",
lazy.to_screen(2) # Keyboard focus screen(0)
),
Key([mod], "o",
lazy.to_screen(0) # Keyboard focus screen(1)
Key([mod], "e",
lazy.to_screen(0) # Keyboard focus screen(1)
),
Key([mod], "p",
lazy.to_screen(1) # Keyboard focus screen(2)
Key([mod], "r",
lazy.to_screen(1) # Keyboard focus screen(2)
),
Key([mod, "control"], "k",
lazy.layout.section_up() # Move up a section in treetab
lazy.layout.section_up() # Move up a section in treetab
),
Key([mod, "control"], "j",
lazy.layout.section_down() # Move down a section in treetab
lazy.layout.section_down() # Move down a section in treetab
),
# Window controls
Key(
[mod], "k",
lazy.layout.down() # Switch between windows in current stack pane
lazy.layout.down() # Switch between windows in current stack pane
),
Key(
[mod], "j",
lazy.layout.up() # Switch between windows in current stack pane
lazy.layout.up() # Switch between windows in current stack pane
),
Key(
[mod, "shift"], "k",
lazy.layout.shuffle_down() # Move windows down in current stack
lazy.layout.shuffle_down() # Move windows down in current stack
),
Key(
[mod, "shift"], "j",
lazy.layout.shuffle_up() # Move windows up in current stack
lazy.layout.shuffle_up() # Move windows up in current stack
),
Key(
[mod, "shift"], "l",
lazy.layout.grow(), # Grow size of current window (XmonadTall)
lazy.layout.increase_nmaster(), # Increase number in master pane (Tile)
lazy.layout.grow(), # Grow size of current window (XmonadTall)
lazy.layout.increase_nmaster(), # Increase number in master pane (Tile)
),
Key(
[mod, "shift"], "h",
lazy.layout.shrink(), # Shrink size of current window (XmonadTall)
lazy.layout.decrease_nmaster(), # Decrease number in master pane (Tile)
lazy.layout.shrink(), # Shrink size of current window (XmonadTall)
lazy.layout.decrease_nmaster(), # Decrease number in master pane (Tile)
),
Key(
[mod, "shift"], "Left", # Move window to workspace to the left
[mod, "shift"], "Left", # Move window to workspace to the left
window_to_prev_group
),
Key(
[mod, "shift"], "Right", # Move window to workspace to the right
[mod, "shift"], "Right", # Move window to workspace to the right
window_to_next_group
),
Key(
[mod], "n",
lazy.layout.normalize() # Restore all windows to default size ratios
lazy.layout.normalize() # Restore all windows to default size ratios
),
Key(
[mod], "m",
lazy.layout.maximize() # Toggle a window between minimum and maximum sizes
lazy.layout.maximize() # Toggle a window between minimum and maximum sizes
),
Key(
[mod, "shift"], "KP_Enter",
lazy.window.toggle_floating() # Toggle floating
lazy.window.toggle_floating() # Toggle floating
),
Key(
[mod, "shift"], "space",
lazy.layout.rotate(), # Swap panes of split stack (Stack)
lazy.layout.flip() # Switch which side main pane occupies (XmonadTall)
lazy.layout.rotate(), # Swap panes of split stack (Stack)
lazy.layout.flip() # Switch which side main pane occupies (XmonadTall)
),
# Stack controls
Key(
[mod], "space",
lazy.layout.next() # Switch window focus to other pane(s) of stack
lazy.layout.next() # Switch window focus to other pane(s) of stack
),
Key(
[mod, "control"], "Return",
lazy.layout.toggle_split() # Toggle between split and unsplit sides of stack
lazy.layout.toggle_split() # Toggle between split and unsplit sides of stack
),
# GUI Apps
Key(
[mod], "w",
[mod], "b",
lazy.function(app_or_group("WWW", "firefox"))
),
Key(
@ -574,9 +574,9 @@ def init_mouse():
##### DEFINING A FEW THINGS #####
if __name__ in ["config", "__main__"]:
mod = "mod4" # Sets mod key to SUPER/WINDOWS
mod = "mod4" # Sets mod key to SUPER/WINDOWS
myTerm = "st" # My terminal of choice
myConfig = "/home/dt/.config/qtile/config.py" # Qtile config file location
myConfig = "/home/dt/.config/qtile/config.py" # Qtile config file location
colors = init_colors()
keys = init_keys()

View File

@ -2,7 +2,7 @@
-- 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:UbuntuMono Nerd Font:pixelsize=14:antialias=true:hinting=true"
Config { font = "xft:Mononoki Nerd Font:pixelsize=14:antialias=true:hinting=true"
, bgColor = "#292d3e"
, fgColor = "#bbc5ff"
, position = Top

View File

@ -2,7 +2,7 @@
-- 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:UbuntuMono Nerd Font:pixelsize=14:antialias=true:hinting=true"
Config { font = "xft:Mononoki Nerd Font:pixelsize=14:antialias=true:hinting=true"
, bgColor = "#292d3e"
, fgColor = "#bbc5ff"
, position = Top

View File

@ -2,7 +2,7 @@
-- 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:UbuntuMono Nerd Font:pixelsize=14:antialias=true:hinting=true"
Config { font = "xft:Mononoki Nerd Font:pixelsize=14:antialias=true:hinting=true"
, additionalFonts = [ "xft:FontAwesome:pixelsize=13" ]
, bgColor = "#292d3e"
, fgColor = "#bbc5ff"

View File

@ -111,8 +111,8 @@ myStartupHook = do
spawnOnce "urxvtd &"
spawnOnce "nitrogen --restore &"
spawnOnce "compton --config /home/dt/.config/compton/compton.conf &"
spawnOnce "exec /usr/bin/trayer --edge top --align right --SetDockType true --SetPartialStrut true --expand true --width 10 --transparent true --alpha 0 --tint 0x292d3e --height 19 &"
setWMName "LG3D"
--spawnOnce "exec /usr/bin/trayer --edge top --align right --SetDockType true --SetPartialStrut true --expand true --width 15 --transparent true --alpha 0 --tint 0x292d3e --height 19 &"
--spawnOnce "/home/dt/.xmonad/xmonad.start" -- Sets our wallpaper
------------------------------------------------------------------------

2
.zshrc
View File

@ -1,4 +1,4 @@
export TERM="xterm-256color"
export TERM="st-256color"
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH

View File

@ -5,7 +5,7 @@
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/
static char *font = "UbuntuMono Nerd Font:pixelsize=16:antialias=true:autohint=true";
static char *font = "Mononoki Nerd Font:pixelsize=16:antialias=true:autohint=true";
static int borderpx = 2;
/*
@ -83,7 +83,7 @@ char *termname = "st-256color";
unsigned int tabspaces = 8;
/* bg opacity */
unsigned int alpha = 0xee;
unsigned int alpha = 0xf2;
/* Terminal colors (16 first used in escape sequence) */
static const char *colorname[] = {