...
 
Commits (2)
......@@ -13,6 +13,7 @@ set $right Right
set $exiti3 "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
set $lockscreen lock -t 'Lucien Cartier-Tilet (Phuntsok Drak-pa), +33 (0)6 83 90 56 89'
set $rofiexec "rofi -combi-modi window,drun -show combi -mohh combi"
set $execgnus "workspace 5; exec emacsclient --create-frame --eval '(gnus)'"
# use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
......@@ -116,17 +117,17 @@ bindsym $mod+$alt+Shift+k exec setxkbmap fr
bindsym $mod+$alt+Ctrl+k exec setxkbmap us
# bindings for MS Natural Ergonomic Keyboard 4000 ##############################
bindsym XF86Launch5 workspace 2; exec emacs
bindsym $mod+e workspace 2; exec emacs
bindsym XF86Launch5 workspace 2; exec emacsclient --create-frame
bindsym $mod+e workspace 2; exec emacsclient --create-frame
bindsym XF86Launch6 workspace 3; exec chromium
bindsym $mod+c workspace 3; exec chromium
bindsym XF86HomePage workspace 3; exec chromium https://labs.phundrak.fr
bindsym XF86Search workspace 3; exec chromium https://www.google.com
bindsym XF86Launch9 workspace 4; exec nemo
bindsym $mod+n workspace 4; exec nemo
bindsym XF86Launch8 workspace 5; exec emacs --eval "(gnus)"
bindsym XF86Mail workspace 5; exec emacs --eval "(gnus)"
bindsym $mod+m workspace 5; exec emacs --eval "(gnus)"
bindsym XF86Launch8 $execgnus
bindsym XF86Mail $execgnus
bindsym $mod+m $execgnus
bindsym XF86Launch7 workspace 10; exec discord-canary
bindsym Ctrl+Shift+d workspace 10; exec discord-canary
bindsym XF86AudioMute exec amixer -D pulse set Master 1+ toggle
......@@ -219,6 +220,9 @@ exec --no-startup-id numlockx on
exec --no-startup-id redshift-gtk
exec --no-startup-id mpd
exec --no-startup-id mpc stop
exec --no-startup-id syndaemon -i 1.0 -t -k
exec sleep 3; workspace 2; emacs --eval "(server-start)"
################################################################################
# Set colors from Xresources #
......
......@@ -24,9 +24,7 @@ monitor= ${env:MONITOR}
bottom = false
width = 100%
height = 30
; offset-x = 10%
; offset-y = 10%
height = 22
radius = 0.0
fixed-center = true
......@@ -52,9 +50,9 @@ font-1 = unifont:fontformat=truetype:size=8:antialias=false
font-2 = "Wuncon Siji:pixelsize=10"
font-3 = "IPAMincho:style=regular:pixelsize=10"
modules-left = i3 filesystem mpd volume backlight-acpi
modules-left = i3 mpd pulseaudio pulsebluetooth backlight-acpi
modules-center = date xwindow
modules-right = cpu memory wlan eth temperature battery powermenu
modules-right = filesystem cpu memory wlan eth temperature battery powermenu
tray-position =
tray-padding = 0
......@@ -63,13 +61,6 @@ tray-maxsize = 15
tray-transparent = false
tray-background = ${colors.background}
; wm-restack = bspwm
; wm-restack = i3
; override-redirect = true
; scroll-up = bspwm-desknext
; scroll-down = bspwm-deskprev
scroll-up = i3wm-wsnext
scroll-down = i3wm-wsprev
......@@ -105,7 +96,6 @@ label-maxlen = 30
;; ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
......@@ -131,36 +121,15 @@ label-indicator-underline = ${colors.secondary}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[module/filesystem]
type = internal/fs
interval = 25
interval = 20
mount-0 = /
mount-1 = /home
label-mounted =  %{F#aeaeae}%mountpoint%%{F-}: %percentage_used%%
label-mounted =  %mountpoint%: %percentage_used%%
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.foreground-alt}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[module/bspwm]
type = internal/bspwm
label-focused = %index%
label-focused-background = ${colors.background-alt}
label-focused-underline= ${colors.primary}
label-focused-padding = 2
label-occupied = %index%
label-occupied-padding = 2
label-urgent = %index%!
label-urgent-background = ${colors.alert}
label-urgent-padding = 2
label-empty = %index%
label-empty-foreground = ${colors.foreground-alt}
label-empty-padding = 2
label-mounted-foreground = ${colors.foreground}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
......@@ -169,62 +138,40 @@ label-empty-padding = 2
type = internal/i3
index-sort = true
wrapping-scroll = false
strip-wsnumbers = false
; Only show workspaces on the same output as the bar
pin-workspaces = true
fuzzy-match = true
; Available tokens:
; %name%
; %icon%
; %index%
; %output%
; Default: %icon% %name%
label-focused = %icon%
label-focused-background = ${colors.background-alt}
label-focused-underline = ${xrdb:color8:#ffff00}
label-focused-padding = ${module/bspwm.label-focused-padding}
label-focused-padding = 2
; unfocused = Inactive workspace on any monitor
label-unfocused = %icon%
label-unfocused-padding = ${module/bspwm.label-occupied-padding}
label-unfocused-padding = 2
; visible = Active workspace on unfocused monitor
label-visible = %icon%
label-visible-background = ${self.label-focused-background}
label-visible-underline = ${self.label-focused-underline}
label-visible-padding = ${self.label-focused-padding}
; urgent = Workspace with urgency hint set
label-urgent = %index% %icon%
label-urgent-background = ${xrdb:color0:#bd2c40}
label-urgent-padding = ${module/bspwm.label-urgent-padding}
label-urgent-padding = 2
; ws-icon-[0-9]+ = label;icon
; NOTE: The label needs to match the name of the i3 workspace
ws-icon-0 = 1;term
ws-icon-1 = 2;dev
ws-icon-2 = 3;www
ws-icon-3 = 4;files
ws-icon-4 = 5;mails
ws-icon-5 = 6;media
ws-icon-6 = 7;7
ws-icon-6 = 7;VMs
ws-icon-7 = 8;8
ws-icon-8 = 9;9
ws-icon-8 = 9;steam
ws-icon-9 = 0;discord
ws-icon-default = %index%
; Available tags:
; <label-state> (default) - gets replaced with <label-(focused|unfocused|visible|urgent)>
; <label-mode> (default)
format = <label-state> <label-mode>
; Available tokens:
; %mode%
; Default: %mode%
label-mode = %mode%
label-mode-padding = 2
label-mode-foreground = #000
......@@ -241,7 +188,6 @@ label-song-maxlen = 25
label-song-ellipsis = true
label-offline =  mpd is offline
format-online = <icon-prev> <toggle> <icon-next> <label-song>
format-offline = <label-offline>
......@@ -287,24 +233,10 @@ card = intel_backlight
[module/cpu]
type = internal/cpu
interval = 2
; format-prefix = " "
; ; format-prefix-foreground = ${colors.foreground-alt}
; format-underline = #f90000
; label = %percentage%%
; Available tags:
; <label> (default)
; <bar-load>
; <ramp-load>
; <ramp-coreload>
format = <label> <ramp-coreload>
format-prefix = " "
format-underline = #f90000
; Available tokens:
; %percentage% (default) - total cpu load
; %percentage-cores% - load percentage for each core
; %percentage-core[1-9]% - load percentage for specific core
label = %percentage%%
ramp-coreload-0 = ▁
......@@ -335,7 +267,7 @@ interval = 2
; <bar-free>
; <ramp-used>
; <ramp-free>
format = <label>
format = <label> <ramp-used>
format-prefix = " "
format-underline = #4bffdc
......@@ -357,31 +289,8 @@ format-underline = #4bffdc
; %gb_swap_free%
; %gb_swap_used%
label = %percentage_used%%
; Only applies if <bar-used> is used
bar-used-indicator =
bar-used-width = 20
bar-used-foreground-0 = #55aa55
bar-used-foreground-1 = #557755
bar-used-foreground-2 = #f5a70a
bar-used-foreground-3 = #ff5555
bar-used-fill = ▐
bar-used-empty = ▐
bar-used-empty-foreground = #444444
; Only applies if <bar-free> is used
bar-free-indicator =
bar-free-width = 20
bar-free-foreground-0 = #55aa55
bar-free-foreground-1 = #557755
bar-free-foreground-2 = #f5a70a
bar-free-foreground-3 = #ff5555
bar-free-fill = ▐
bar-free-empty = ▐
bar-free-empty-foreground = #444444
; Only applies if <ramp-used> is used
label = %gb_used%
ramp-used-0 = ▁
ramp-used-1 = ▂
ramp-used-2 = ▃
......@@ -391,16 +300,6 @@ ramp-used-5 = ▆
ramp-used-6 = ▇
ramp-used-7 = █
; Only applies if <ramp-free> is used
ramp-free-0 = ▁
ramp-free-1 = ▂
ramp-free-2 = ▃
ramp-free-3 = ▄
ramp-free-4 = ▅
ramp-free-5 = ▆
ramp-free-6 = ▇
ramp-free-7 = █
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
......@@ -464,11 +363,79 @@ format-underline = #0a6cf5
label = %date% %time%
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[module/pulseaudio]
type = internal/pulseaudio
; Sink to be used, if it exists (find using `pacmd list-sinks`, name field)
sink = alsa_output.pci-0000_00_1f.3.analog-stereo
use-ui-max = true
interval = 5
format-volume = <bar-volume>
format-volume-prefix = " "
format-muted = <label-muted>
format-muted-prefix = " "
label-muted = muted
bar-volume-width = 10
bar-volume-foreground-0 = #55aa55
bar-volume-foreground-1 = #55aa55
bar-volume-foreground-2 = #55aa55
bar-volume-foreground-3 = #55aa55
bar-volume-foreground-4 = #55aa55
bar-volume-foreground-5 = #f5a70a
bar-volume-foreground-6 = #ff5555
bar-volume-gradient = false
bar-volume-indicator = |
bar-volume-indicator-font = 2
bar-volume-fill = ─
bar-volume-fill-font = 2
bar-volume-empty = -
bar-volume-empty-font = 2
bar-volume-empty-foreground = ${colors.foreground}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[module/pulsebluetooth]
type = internal/pulseaudio
; Sink to be used, if it exists (find using `pacmd list-sinks`, name field)
sink = bluez_sink.2C_41_A1_2D_EF_D9.a2dp_sink
use-ui-max = true
interval = 5
format-volume = <bar-volume>
format-volume-prefix = " "
format-muted = <label-muted>
format-muted-prefix = " "
label-muted = muted
bar-volume-width = 10
bar-volume-foreground-0 = #55aa55
bar-volume-foreground-1 = #55aa55
bar-volume-foreground-2 = #55aa55
bar-volume-foreground-3 = #55aa55
bar-volume-foreground-4 = #55aa55
bar-volume-foreground-5 = #f5a70a
bar-volume-foreground-6 = #ff5555
bar-volume-gradient = false
bar-volume-indicator = |
bar-volume-indicator-font = 2
bar-volume-fill = ─
bar-volume-fill-font = 2
bar-volume-empty = -
bar-volume-empty-font = 2
bar-volume-empty-foreground = ${colors.foreground}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[module/volume]
type = internal/volume
type = internal/alsa
format-volume = <label-volume> <bar-volume>
format-volume-prefix = ""
......@@ -571,8 +538,8 @@ format-underline = #f50a4d
format-warn = <ramp> <label-warn>
format-warn-underline = ${self.format-underline}
label = %temperature%
label-warn = %temperature%
label = %temperature-c%
label-warn = %temperature-c%
label-warn-foreground = ${colors.secondary}
ramp-0 = 
......