added power menu removed scripts
This commit is contained in:
parent
1f9be1ac7b
commit
89a8ed6eb8
3
.bashrc
3
.bashrc
@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
[[ $- != *i* ]] && return
|
[[ $- != *i* ]] && return
|
||||||
|
|
||||||
|
export PATH="$PATH:$(du --exclude=.git "$HOME/scripts/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')"
|
||||||
|
|
||||||
colors() {
|
colors() {
|
||||||
local fgc bgc vals seq0
|
local fgc bgc vals seq0
|
||||||
|
|
||||||
@ -95,6 +97,7 @@ alias df='df -h' # human-readable sizes
|
|||||||
alias free='free -m' # show sizes in MB
|
alias free='free -m' # show sizes in MB
|
||||||
alias np='nano -w PKGBUILD'
|
alias np='nano -w PKGBUILD'
|
||||||
alias more=less
|
alias more=less
|
||||||
|
alias mkdir='mkdir -p'
|
||||||
|
|
||||||
alias dis='intel-virtual-output -f'
|
alias dis='intel-virtual-output -f'
|
||||||
|
|
||||||
|
@ -170,7 +170,7 @@ bindsym $mod+Shift+c reload
|
|||||||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||||
bindsym $mod+Shift+r restart
|
bindsym $mod+Shift+r restart
|
||||||
# exit i3 (logs you out of your X session)
|
# exit i3 (logs you out of your X session)
|
||||||
bindsym $mod+Shift+e exec "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' 'mate-session-save --logout'"
|
bindsym $mod+Shift+e exec --no-startup-id powermenu
|
||||||
|
|
||||||
# resize window (you can also use the mouse for that)
|
# resize window (you can also use the mouse for that)
|
||||||
mode "resize" {
|
mode "resize" {
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
termite && ranger
|
|
@ -66,13 +66,13 @@ font-2 = unifont:size=6;1
|
|||||||
modules-left = i3 mpd
|
modules-left = i3 mpd
|
||||||
;modules-center = mpd
|
;modules-center = mpd
|
||||||
;modules-center = xwindow
|
;modules-center = xwindow
|
||||||
modules-right = wifi public-ip vpn battery powermenu date
|
modules-right = wifi public-ip vpn battery date
|
||||||
|
|
||||||
tray-position = right
|
tray-position = right
|
||||||
tray-padding = 4
|
tray-padding = 4
|
||||||
;tray-maxsize = 16
|
;tray-maxsize = 16
|
||||||
tray-transparent = true
|
tray-background = ${root.background}
|
||||||
;tray-detached = true
|
tray-detached = false
|
||||||
;tray-offset-x = 50
|
;tray-offset-x = 50
|
||||||
|
|
||||||
wm-restack = i3
|
wm-restack = i3
|
||||||
@ -273,41 +273,6 @@ type = internal/counter
|
|||||||
format = <counter>
|
format = <counter>
|
||||||
interval = 0.1
|
interval = 0.1
|
||||||
|
|
||||||
[module/powermenu]
|
|
||||||
type = custom/menu
|
|
||||||
|
|
||||||
format-spacing = 1
|
|
||||||
|
|
||||||
label-open =power
|
|
||||||
label-foreground = #FFFFFF
|
|
||||||
;label-open-foreground = ${colors.separator}
|
|
||||||
label-close = cancel
|
|
||||||
;label-close-foreground = ${colors.separator}
|
|
||||||
label-separator = " "
|
|
||||||
;label-separator-foreground = ${colors.separator}
|
|
||||||
|
|
||||||
menu-0-0 = reboot
|
|
||||||
menu-0-0-exec = menu-open-1
|
|
||||||
menu-0-1 = power off
|
|
||||||
menu-0-1-exec = menu-open-2
|
|
||||||
|
|
||||||
;menu-1-0 = cancel
|
|
||||||
;menu-1-0-exec = menu-open-0
|
|
||||||
menu-1-0 = reboot
|
|
||||||
menu-1-0-exec = reboot
|
|
||||||
|
|
||||||
menu-2-0 = power off
|
|
||||||
menu-2-0-exec = poweroff
|
|
||||||
menu-2-1 = cancel
|
|
||||||
menu-2-1-exec = menu-open-0
|
|
||||||
;format-label-foreground = #5b
|
|
||||||
|
|
||||||
format-underline = ${xrdb:color2:#222}
|
|
||||||
format-foreground = #FFFFFF
|
|
||||||
;format-underline = #b51e3a
|
|
||||||
;format-overline = #b51e3a
|
|
||||||
format-padding = 2
|
|
||||||
|
|
||||||
[module/vpn]
|
[module/vpn]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
exec = pgrep openvpn >/dev/null && printf "up\n" || printf "down\n"
|
exec = pgrep openvpn >/dev/null && printf "up\n" || printf "down\n"
|
||||||
|
@ -31,6 +31,10 @@
|
|||||||
background-color: @background;
|
background-color: @background;
|
||||||
border: 0;
|
border: 0;
|
||||||
padding: 2.5ch;
|
padding: 2.5ch;
|
||||||
|
location: west;
|
||||||
|
anchor: west;
|
||||||
|
height: 100%;
|
||||||
|
width: 30%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#mainbox {
|
#mainbox {
|
||||||
|
@ -3,4 +3,4 @@ rofi.modi: window,drun,run
|
|||||||
rofi.combi-modi: drun,run
|
rofi.combi-modi: drun,run
|
||||||
rofi.location: 2
|
rofi.location: 2
|
||||||
rofi.sidebar-mode: true
|
rofi.sidebar-mode: true
|
||||||
rofi.theme: ~/.cache/wal/colors-rofi-dark.rasi
|
rofi.theme: ~/dotfiles/rofi/colors-rofi-dark.rasi
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
if [ -z $1 ]; then
|
|
||||||
echo "no url given"
|
|
||||||
else
|
|
||||||
youtube-dl --config-location ~/.config/youtube-dl/audioconfig $1
|
|
||||||
fi
|
|
Loading…
Reference in New Issue
Block a user