mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-19 13:46:17 +10:00
Adding clickable events to xmobar widgets
This commit is contained in:
3
.bashrc
3
.bashrc
@@ -13,9 +13,6 @@ export ALTERNATE_EDITOR="" # setting for emacsclient
|
|||||||
export EDITOR="emacsclient -t -a ''" # $EDITOR use Emacs in terminal
|
export EDITOR="emacsclient -t -a ''" # $EDITOR use Emacs in terminal
|
||||||
export VISUAL="emacsclient -c -a emacs" # $VISUAL use Emacs in GUI mode
|
export VISUAL="emacsclient -c -a emacs" # $VISUAL use Emacs in GUI mode
|
||||||
|
|
||||||
### EXPORTS for dmscripts
|
|
||||||
export DMTERM="emacsclient -c -a emacs"
|
|
||||||
|
|
||||||
### SET MANPAGER
|
### SET MANPAGER
|
||||||
### Uncomment only one of these!
|
### Uncomment only one of these!
|
||||||
|
|
||||||
|
|||||||
@@ -18,9 +18,6 @@ set TERM "xterm-256color" # Sets the terminal type
|
|||||||
set EDITOR "emacsclient -t -a ''" # $EDITOR use Emacs in terminal
|
set EDITOR "emacsclient -t -a ''" # $EDITOR use Emacs in terminal
|
||||||
set VISUAL "emacsclient -c -a emacs" # $VISUAL use Emacs in GUI mode
|
set VISUAL "emacsclient -c -a emacs" # $VISUAL use Emacs in GUI mode
|
||||||
|
|
||||||
### EXPORTS for dmscripts
|
|
||||||
set DMTERM "emacsclient -c -a emacs"
|
|
||||||
|
|
||||||
### SET MANPAGER
|
### SET MANPAGER
|
||||||
### Uncomment only one of these!
|
### Uncomment only one of these!
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ Config { font = "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:hinting=t
|
|||||||
, persistent = True
|
, persistent = True
|
||||||
, iconRoot = "/home/dt/.xmonad/xpm/" -- default: "."
|
, iconRoot = "/home/dt/.xmonad/xpm/" -- default: "."
|
||||||
, commands = [
|
, commands = [
|
||||||
-- Time and date
|
-- Time and date
|
||||||
Run Date "<fn=1>\xf133</fn> %b %d %Y - (%H:%M) " "date" 50
|
Run Date "<fn=1>\xf133</fn> %b %d %Y - (%H:%M) " "date" 50
|
||||||
-- Network up and down
|
-- Network up and down
|
||||||
, Run Network "enp6s0" ["-t", "<fn=1>\xf0ab</fn> <rx>kb <fn=1>\xf0aa</fn> <tx>kb"] 20
|
, Run Network "enp6s0" ["-t", "<fn=1>\xf0ab</fn> <rx>kb <fn=1>\xf0aa</fn> <tx>kb"] 20
|
||||||
@@ -30,11 +30,13 @@ Config { font = "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:hinting=t
|
|||||||
, Run Com "/home/dt/.local/bin/pacupdate" [] "pacupdate" 36000
|
, Run Com "/home/dt/.local/bin/pacupdate" [] "pacupdate" 36000
|
||||||
-- Runs a standard shell command 'uname -r' to get kernel version
|
-- Runs a standard shell command 'uname -r' to get kernel version
|
||||||
, Run Com "uname" ["-r"] "" 3600
|
, Run Com "uname" ["-r"] "" 3600
|
||||||
|
-- Script that dynamically adjusts xmobar padding depending on number of trayer icons.
|
||||||
|
, Run Com "~/.config/xmobar/trayer-padding-icon.sh" [] "trayerpad" 20
|
||||||
-- Prints out the left side items such as workspaces, layout, etc.
|
-- Prints out the left side items such as workspaces, layout, etc.
|
||||||
-- The workspaces are 'clickable' in my configs.
|
-- The workspaces are 'clickable' in my configs.
|
||||||
, Run UnsafeStdinReader
|
, Run UnsafeStdinReader
|
||||||
]
|
]
|
||||||
, sepChar = "%"
|
, sepChar = "%"
|
||||||
, alignSep = "}{"
|
, alignSep = "}{"
|
||||||
, template = " <action=`xdotool key control+alt+g`><icon=haskell_20.xpm/> </action><fc=#666666> |</fc> %UnsafeStdinReader% }{ <fc=#666666> |</fc> <fc=#b3afc2><fn=1></fn> %uname% </fc><fc=#666666> |</fc> <fc=#ecbe7b> %cpu% </fc><fc=#666666> |</fc> <fc=#ff6c6b> %memory% </fc><fc=#666666> |</fc> <fc=#51afef> %disku% </fc><fc=#666666> |</fc> <fc=#98be65> %enp6s0% </fc><fc=#666666> |</fc> <fc=#c678dd><fn=1></fn> %pacupdate% </fc><fc=#666666> |</fc> <fc=#46d9ff> %date% </fc>"
|
, template = " <icon=haskell_20.xpm/> <fc=#666666>|</fc> %UnsafeStdinReader% }{ <fc=#666666>|</fc> <fc=#b3afc2><fn=1></fn> <action=`alacritty -e htop`>%uname%</action> </fc> <fc=#666666>|</fc> <fc=#ecbe7b> <action=`alacritty -e htop`>%cpu%</action> </fc> <fc=#666666>|</fc> <fc=#ff6c6b> <action=`alacritty -e htop`>%memory%</action> </fc> <fc=#666666>|</fc> <fc=#51afef> <action=`alacritty -e htop`>%disku%</action> </fc> <fc=#666666>|</fc> <fc=#98be65> <action=`alacritty -e sudo iftop`>%enp6s0%</action> </fc> <fc=#666666>|</fc> <fc=#c678dd><fn=1></fn> <action=`alacritty -e sudo pacman -Syu`>%pacupdate%</action> </fc> <fc=#666666>|</fc> <fc=#46d9ff> <action=`alacritty -e calcurse`>%date%</action> </fc>"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,14 +8,14 @@ Config { font = "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:hinting=t
|
|||||||
]
|
]
|
||||||
, bgColor = "#282c34"
|
, bgColor = "#282c34"
|
||||||
, fgColor = "#ff6c6b"
|
, fgColor = "#ff6c6b"
|
||||||
, position = Static { xpos = 3840 , ypos = 0, width = 1920, height = 24 }
|
, position = Static { xpos = 1920 , ypos = 0, width = 1920, height = 24 }
|
||||||
, lowerOnStart = True
|
, lowerOnStart = True
|
||||||
, hideOnStart = False
|
, hideOnStart = False
|
||||||
, allDesktops = True
|
, allDesktops = True
|
||||||
, persistent = True
|
, persistent = True
|
||||||
, iconRoot = "/home/dt/.xmonad/xpm/" -- default: "."
|
, iconRoot = "/home/dt/.xmonad/xpm/" -- default: "."
|
||||||
, commands = [
|
, commands = [
|
||||||
-- Time and date
|
-- Time and date
|
||||||
Run Date "<fn=1>\xf133</fn> %b %d %Y - (%H:%M) " "date" 50
|
Run Date "<fn=1>\xf133</fn> %b %d %Y - (%H:%M) " "date" 50
|
||||||
-- Network up and down
|
-- Network up and down
|
||||||
, Run Network "enp6s0" ["-t", "<fn=1>\xf0ab</fn> <rx>kb <fn=1>\xf0aa</fn> <tx>kb"] 20
|
, Run Network "enp6s0" ["-t", "<fn=1>\xf0ab</fn> <rx>kb <fn=1>\xf0aa</fn> <tx>kb"] 20
|
||||||
@@ -30,11 +30,13 @@ Config { font = "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:hinting=t
|
|||||||
, Run Com "/home/dt/.local/bin/pacupdate" [] "pacupdate" 36000
|
, Run Com "/home/dt/.local/bin/pacupdate" [] "pacupdate" 36000
|
||||||
-- Runs a standard shell command 'uname -r' to get kernel version
|
-- Runs a standard shell command 'uname -r' to get kernel version
|
||||||
, Run Com "uname" ["-r"] "" 3600
|
, Run Com "uname" ["-r"] "" 3600
|
||||||
|
-- Script that dynamically adjusts xmobar padding depending on number of trayer icons.
|
||||||
|
, Run Com "~/.config/xmobar/trayer-padding-icon.sh" [] "trayerpad" 20
|
||||||
-- Prints out the left side items such as workspaces, layout, etc.
|
-- Prints out the left side items such as workspaces, layout, etc.
|
||||||
-- The workspaces are 'clickable' in my configs.
|
-- The workspaces are 'clickable' in my configs.
|
||||||
, Run UnsafeStdinReader
|
, Run UnsafeStdinReader
|
||||||
]
|
]
|
||||||
, sepChar = "%"
|
, sepChar = "%"
|
||||||
, alignSep = "}{"
|
, alignSep = "}{"
|
||||||
, template = " <action=`xdotool key control+alt+g`><icon=haskell_20.xpm/> </action><fc=#666666> |</fc> %UnsafeStdinReader% }{ <fc=#666666> |</fc> <fc=#b3afc2><fn=1></fn> %uname% </fc><fc=#666666> |</fc> <fc=#ecbe7b> %cpu% </fc><fc=#666666> |</fc> <fc=#ff6c6b> %memory% </fc><fc=#666666> |</fc> <fc=#51afef> %disku% </fc><fc=#666666> |</fc> <fc=#98be65> %enp6s0% </fc><fc=#666666> |</fc> <fc=#c678dd><fn=1></fn> %pacupdate% </fc><fc=#666666> |</fc> <fc=#46d9ff> %date% </fc>"
|
, template = " <icon=haskell_20.xpm/> <fc=#666666>|</fc> %UnsafeStdinReader% }{ <fc=#666666>|</fc> <fc=#b3afc2><fn=1></fn> <action=`alacritty -e htop`>%uname%</action> </fc> <fc=#666666>|</fc> <fc=#ecbe7b> <action=`alacritty -e htop`>%cpu%</action> </fc> <fc=#666666>|</fc> <fc=#ff6c6b> <action=`alacritty -e htop`>%memory%</action> </fc> <fc=#666666>|</fc> <fc=#51afef> <action=`alacritty -e htop`>%disku%</action> </fc> <fc=#666666>|</fc> <fc=#98be65> <action=`alacritty -e sudo iftop`>%enp6s0%</action> </fc> <fc=#666666>|</fc> <fc=#c678dd><fn=1></fn> <action=`alacritty -e sudo pacman -Syu`>%pacupdate%</action> </fc> <fc=#666666>|</fc> <fc=#46d9ff> <action=`alacritty -e calcurse`>%date%</action> </fc><fc=#666666><fn=1>|</fn></fc> %trayerpad%"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,14 +8,14 @@ Config { font = "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:hinting=t
|
|||||||
]
|
]
|
||||||
, bgColor = "#282c34"
|
, bgColor = "#282c34"
|
||||||
, fgColor = "#ff6c6b"
|
, fgColor = "#ff6c6b"
|
||||||
, position = Static { xpos = 1920 , ypos = 0, width = 1920, height = 24 }
|
, position = Static { xpos = 3840 , ypos = 0, width = 1920, height = 24 }
|
||||||
, lowerOnStart = True
|
, lowerOnStart = True
|
||||||
, hideOnStart = False
|
, hideOnStart = False
|
||||||
, allDesktops = True
|
, allDesktops = True
|
||||||
, persistent = True
|
, persistent = True
|
||||||
, iconRoot = "/home/dt/.xmonad/xpm/" -- default: "."
|
, iconRoot = "/home/dt/.xmonad/xpm/" -- default: "."
|
||||||
, commands = [
|
, commands = [
|
||||||
-- Time and date
|
-- Time and date
|
||||||
Run Date "<fn=1>\xf133</fn> %b %d %Y - (%H:%M) " "date" 50
|
Run Date "<fn=1>\xf133</fn> %b %d %Y - (%H:%M) " "date" 50
|
||||||
-- Network up and down
|
-- Network up and down
|
||||||
, Run Network "enp6s0" ["-t", "<fn=1>\xf0ab</fn> <rx>kb <fn=1>\xf0aa</fn> <tx>kb"] 20
|
, Run Network "enp6s0" ["-t", "<fn=1>\xf0ab</fn> <rx>kb <fn=1>\xf0aa</fn> <tx>kb"] 20
|
||||||
@@ -30,13 +30,11 @@ Config { font = "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:hinting=t
|
|||||||
, Run Com "/home/dt/.local/bin/pacupdate" [] "pacupdate" 36000
|
, Run Com "/home/dt/.local/bin/pacupdate" [] "pacupdate" 36000
|
||||||
-- Runs a standard shell command 'uname -r' to get kernel version
|
-- Runs a standard shell command 'uname -r' to get kernel version
|
||||||
, Run Com "uname" ["-r"] "" 3600
|
, Run Com "uname" ["-r"] "" 3600
|
||||||
-- Script that dynamically adjusts xmobar padding depending on number of trayer icons.
|
|
||||||
, Run Com "~/.config/xmobar/trayer-padding-icon.sh" [] "trayerpad" 20
|
|
||||||
-- Prints out the left side items such as workspaces, layout, etc.
|
-- Prints out the left side items such as workspaces, layout, etc.
|
||||||
-- The workspaces are 'clickable' in my configs.
|
-- The workspaces are 'clickable' in my configs.
|
||||||
, Run UnsafeStdinReader
|
, Run UnsafeStdinReader
|
||||||
]
|
]
|
||||||
, sepChar = "%"
|
, sepChar = "%"
|
||||||
, alignSep = "}{"
|
, alignSep = "}{"
|
||||||
, template = " <action=`xdotool key control+alt+g`><icon=haskell_20.xpm/> </action><fc=#666666> |</fc> %UnsafeStdinReader% }{ <fc=#666666> |</fc> <fc=#b3afc2><fn=1></fn> %uname% </fc><fc=#666666> |</fc> <fc=#ecbe7b> %cpu% </fc><fc=#666666> |</fc> <fc=#ff6c6b> %memory% </fc><fc=#666666> |</fc> <fc=#51afef> %disku% </fc><fc=#666666> |</fc> <fc=#98be65> %enp6s0% </fc><fc=#666666> |</fc> <fc=#c678dd><fn=1></fn> %pacupdate% </fc><fc=#666666> |</fc> <fc=#46d9ff> %date% </fc><fc=#666666><fn=1>|</fn></fc>%trayerpad%"
|
, template = " <icon=haskell_20.xpm/> <fc=#666666>|</fc> %UnsafeStdinReader% }{ <fc=#666666>|</fc> <fc=#b3afc2><fn=1></fn> <action=`alacritty -e htop`>%uname%</action> </fc> <fc=#666666>|</fc> <fc=#ecbe7b> <action=`alacritty -e htop`>%cpu%</action> </fc> <fc=#666666>|</fc> <fc=#ff6c6b> <action=`alacritty -e htop`>%memory%</action> </fc> <fc=#666666>|</fc> <fc=#51afef> <action=`alacritty -e htop`>%disku%</action> </fc> <fc=#666666>|</fc> <fc=#98be65> <action=`alacritty -e sudo iftop`>%enp6s0%</action> </fc> <fc=#666666>|</fc> <fc=#c678dd><fn=1></fn> <action=`alacritty -e sudo pacman -Syu`>%pacupdate%</action> </fc> <fc=#666666>|</fc> <fc=#46d9ff> <action=`alacritty -e calcurse`>%date%</action> </fc>"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -596,8 +596,8 @@ main :: IO ()
|
|||||||
main = do
|
main = do
|
||||||
-- Launching three instances of xmobar on their monitors.
|
-- Launching three instances of xmobar on their monitors.
|
||||||
xmproc0 <- spawnPipe "xmobar -x 0 $HOME/.config/xmobar/xmobarrc0"
|
xmproc0 <- spawnPipe "xmobar -x 0 $HOME/.config/xmobar/xmobarrc0"
|
||||||
xmproc1 <- spawnPipe "xmobar -x 1 $HOME/.config/xmobar/xmobarrc2"
|
xmproc1 <- spawnPipe "xmobar -x 1 $HOME/.config/xmobar/xmobarrc1"
|
||||||
xmproc2 <- spawnPipe "xmobar -x 2 $HOME/.config/xmobar/xmobarrc1"
|
xmproc2 <- spawnPipe "xmobar -x 2 $HOME/.config/xmobar/xmobarrc2"
|
||||||
-- the xmonad, ya know...what the WM is named after!
|
-- the xmonad, ya know...what the WM is named after!
|
||||||
xmonad $ ewmh def
|
xmonad $ ewmh def
|
||||||
{ manageHook = myManageHook <+> manageDocks
|
{ manageHook = myManageHook <+> manageDocks
|
||||||
|
|||||||
@@ -485,8 +485,8 @@ main :: IO ()
|
|||||||
main = do
|
main = do
|
||||||
-- Launching three instances of xmobar on their monitors.
|
-- Launching three instances of xmobar on their monitors.
|
||||||
xmproc0 <- spawnPipe "xmobar -x 0 $HOME/.config/xmobar/xmobarrc0"
|
xmproc0 <- spawnPipe "xmobar -x 0 $HOME/.config/xmobar/xmobarrc0"
|
||||||
xmproc1 <- spawnPipe "xmobar -x 1 $HOME/.config/xmobar/xmobarrc2"
|
xmproc1 <- spawnPipe "xmobar -x 1 $HOME/.config/xmobar/xmobarrc1"
|
||||||
xmproc2 <- spawnPipe "xmobar -x 2 $HOME/.config/xmobar/xmobarrc1"
|
xmproc2 <- spawnPipe "xmobar -x 2 $HOME/.config/xmobar/xmobarrc2"
|
||||||
-- the xmonad, ya know...what the WM is named after!
|
-- the xmonad, ya know...what the WM is named after!
|
||||||
xmonad $ ewmh def
|
xmonad $ ewmh def
|
||||||
{ manageHook = myManageHook <+> manageDocks
|
{ manageHook = myManageHook <+> manageDocks
|
||||||
|
|||||||
3
.zshrc
3
.zshrc
@@ -11,9 +11,6 @@ export HISTORY_IGNORE="(ls|cd|pwd|exit|sudo reboot|history|cd -|cd ..)"
|
|||||||
export EDITOR="emacsclient -t -a ''" # $EDITOR use Emacs in terminal
|
export EDITOR="emacsclient -t -a ''" # $EDITOR use Emacs in terminal
|
||||||
export VISUAL="emacsclient -c -a emacs" # $VISUAL use Emacs in GUI mode
|
export VISUAL="emacsclient -c -a emacs" # $VISUAL use Emacs in GUI mode
|
||||||
|
|
||||||
### EXPORTS for dmscripts
|
|
||||||
export DMTERM="emacsclient -c -a emacs"
|
|
||||||
|
|
||||||
### SET MANPAGER
|
### SET MANPAGER
|
||||||
### Uncomment only one of these!
|
### Uncomment only one of these!
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user