From 986b5df9984cfc0f21bb83771fb5aa119e1123b3 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 22 Mar 2019 11:40:42 +0300 Subject: Mobile autostarts and parity --- .config/conky/conky.conf##desktop.Linux.Lowe | 1 + .config/conky/conky.conf##mobile.Linux.Luchs | 12 ++++-- .config/i3/config##desktop.Linux.Lowe | 2 +- .config/i3/config##mobile.Linux.Luchs | 60 ++++++++++++++++++---------- .xsession##mobile.Linux.Luchs | 36 +++++++++++++++++ 5 files changed, 84 insertions(+), 27 deletions(-) create mode 100755 .xsession##mobile.Linux.Luchs diff --git a/.config/conky/conky.conf##desktop.Linux.Lowe b/.config/conky/conky.conf##desktop.Linux.Lowe index 4d76176..f7c160c 100644 --- a/.config/conky/conky.conf##desktop.Linux.Lowe +++ b/.config/conky/conky.conf##desktop.Linux.Lowe @@ -94,4 +94,5 @@ ${voffset 05}${alignc}${font Lato Medium:size=11}${rss https://xkcd.com/rss.xml ${voffset 05}${color0}situation $stippled_hr${color} ${voffset 05}${offset 10}Checking${alignr}${offset -10}${color2}${texecpi 5 ~/.config/conky/scripts/ledger_parser.pl Checking}${color} ${voffset 05}${offset 10}Liabilities${alignr}${offset -10}${color4}${texecpi 5 ~/.config/conky/scripts/ledger_parser.pl Liabilities}${color} +${color4}${alignr} ]] diff --git a/.config/conky/conky.conf##mobile.Linux.Luchs b/.config/conky/conky.conf##mobile.Linux.Luchs index 0b2b90d..aabd64c 100644 --- a/.config/conky/conky.conf##mobile.Linux.Luchs +++ b/.config/conky/conky.conf##mobile.Linux.Luchs @@ -27,11 +27,14 @@ conky.config = { out_to_console = false, out_to_stderr = false, extra_newline = false, + own_window_hints = "undecorated,below,sticky,skip_taskbar,skip_pager", + own_window_transparent = false, + own_window_argb_visual = true, + own_window_argb_value = 200, + own_window_colour = '282828', own_window = true, own_window_class = 'Conky', - own_window_type = 'override', - own_window_transparent = true, - own_window_hints = 'below', + own_window_type = "override", short_units = true, update_interval = 1.0, uppercase = false, @@ -53,6 +56,7 @@ conky.config = { } conky.text = [[ +${color4}${alignr} ${color}${alignc}$sysname $kernel on $machine ${color}${alignc}${exec whoami} @ $nodename ${color0}$hr${color} @@ -83,5 +87,5 @@ ${voffset 05}${texeci 1800 curl -s wttr.in/ank | sed -n '3,7{s/\d27\[[0-9;]*m//g ${color0}calendar $stippled_hr${color} ${voffset 05}${execp TODAY=`date +%_d`; cal | tail -n+2 | sed -e '1 s:.*:\${color3}&\${color6}:' -e '1 s:'"$(date +%a |cut -c 1-2)"':\${color4}&\${color5}:' -e '0,/'"$TODAY"'/{s/'"$TODAY"'/\${color7}'"$TODAY"'\${color8}/}' | sed s/^/'${alignc}'/} ${color0}latest xkcd $stippled_hr${color} -${voffset 05}${alignc}${rss https://xkcd.com/rss.xml 10 item_title 0} +${color4}${alignr} ]] diff --git a/.config/i3/config##desktop.Linux.Lowe b/.config/i3/config##desktop.Linux.Lowe index 9f1cffd..328b144 100644 --- a/.config/i3/config##desktop.Linux.Lowe +++ b/.config/i3/config##desktop.Linux.Lowe @@ -175,7 +175,7 @@ bindsym $mod+Shift+e mode " (L)ock (S)ignout (R)eboot (P)oweroff" bindsym $mod+r mode "resize" -for_window [class=".*"] border pixel 4 +for_window [class=".*"] border pixel 3 assign [class="^Thunderbird$"] 8 diff --git a/.config/i3/config##mobile.Linux.Luchs b/.config/i3/config##mobile.Linux.Luchs index 8929365..9ea02cf 100644 --- a/.config/i3/config##mobile.Linux.Luchs +++ b/.config/i3/config##mobile.Linux.Luchs @@ -5,31 +5,39 @@ set $mod Mod4 set $alt Mod1 -#autostart -exec --no-startup-id xsettingsd & +# disable screensaver, beep and power saving +exec --no-startup-id xset -dpms & +exec --no-startup-id xset s off & +exec --no-startup-id xset -b & + +# start the network manager, useful for vpns +exec --no-startup-id nm-applet & + +# removable media +exec --no-startup-id udiskie --automount --file-manager thunar --tray --notify & + +# set the wallpaper and other visuals +exec --no-startup-id ~/.fehbg & exec --no-startup-id compton -b & +exec --no-startup-id xsettingsd & + +# utilities exec --no-startup-id dropbox & exec --no-startup-id copyq & -exec --no-startup-id xset -b -exec --no-startup-id xinput set-prop "ELAN1200:00 04F3:3045 Touchpad" "libinput Natural Scrolling Enabled" 1 & -exec --no-startup-id xinput set-prop "ELAN1200:00 04F3:3045 Touchpad" "libinput Tapping Enabled" 1 & -exec --no-startup-id nm-applet -exec --no-startup-id ~/.fehbg - -# start the screensaver, '' at the end is not a typo -exec --no-startup-id xidlehook --not-when-fullscreen --not-when-audio --timer normal 300 'betterlockscreen -t "Welcome Back"' '' +exec --no-startup-id conky --daemonize -c ~/.config/conky/conky.conf & +exec --no-startup-id conky --daemonize -c ~/.config/conky/task.conf & -#launch polybar -exec --no-startup-id $HOME/.config/polybar/launch.sh +# keyboard with alt+shift us,tr switch, map escape to capslock +exec --no-startup-id setxkbmap -model pc105 -layout us,tr -option grp:alt_shift_toggle,caps:swapescape & -# swap caps lock and escape, set keyboard layout -exec --no-startup-id setxkbmap -model pc105 -layout us,tr -option grp:alt_shift_toggle,caps:swapescape +exec --no-startup-id xinput set-prop "ELAN1200:00 04F3:3045 Touchpad" "libinput Natural Scrolling Enabled" 1 & +exec --no-startup-id xinput set-prop "ELAN1200:00 04F3:3045 Touchpad" "libinput Tapping Enabled" 1 & -#launch conky windows -exec --no-startup-id conky --daemonize -c ~/.config/conky/conky.conf -exec --no-startup-id conky --daemonize -c ~/.config/conky/task.conf +# launch polybar +exec --no-startup-id $HOME/.config/polybar/launch.sh & -exec --no-startup-id clight +# start the screensaver, '' at the end is not a typo +exec --no-startup-id xidlehook --not-when-fullscreen --not-when-audio --timer normal 300 'betterlockscreen -l dimblur -t "Welcome Back"' '' gaps inner 0 gaps outer 0 @@ -40,14 +48,16 @@ font pango:Lato 11 # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $alt -# bindings - -# shoo the mouse -bindsym $mod+o exec --no-startup-id xdotool mousemove 1920 1080 +############## +# bindings # +############## # i switched back to firefox can you tell bindsym Ctrl+q exec --no-startup-id true +# get the mouse out of the way +bindsym $mod+o exec --no-startup-id xdotool mousemove 1920 1080 + # bookmark from clipboard bindsym $mod+u exec --no-startup-id ~/bin/bukuadd_c @@ -71,6 +81,12 @@ bindsym XF86AudioNext exec mpc next bindsym XF86MonBrightnessUp exec xbacklight -inc 5 bindsym XF86MonBrightnessDown exec xbacklight -dec 5 +# Make the currently focused window a scratchpad +bindsym $mod+Shift+minus move scratchpad + +# Show the first scratchpad window +bindsym $mod+minus scratchpad show + # start a terminal bindsym $mod+Return exec kitty diff --git a/.xsession##mobile.Linux.Luchs b/.xsession##mobile.Linux.Luchs new file mode 100755 index 0000000..7454fc9 --- /dev/null +++ b/.xsession##mobile.Linux.Luchs @@ -0,0 +1,36 @@ +#!/bin/sh + +# +# ~/.xsession +# +# Executed by xdm/gdm/kdm at login +# + +# disable screensaver, beep and power saving +xset -dpms & +xset s off & +xset -b & + +# start the network manager, useful for vpns +nm-applet & + +# removable media +udiskie --automount --file-manager thunar --tray --notify & + +# set the wallpaper and other visuals +~/.fehbg & +compton -b & +xsettingsd & +clight + +# utilities +dropbox & +copyq & +conky --daemonize -c ~/.config/conky/conky.conf & +conky --daemonize -c ~/.config/conky/task.conf & + +# keyboard with alt+shift us,tr switch, map escape to capslock +setxkbmap -model pc105 -layout us,tr -option grp:alt_shift_toggle,caps:swapescape & + +xinput set-prop "ELAN1200:00 04F3:3045 Touchpad" "libinput Natural Scrolling Enabled" 1 & +xinput set-prop "ELAN1200:00 04F3:3045 Touchpad" "libinput Tapping Enabled" 1 & -- cgit v1.2.3-70-g09d2