From 840fc2fdafb9ddfae52379f2f89b632496661386 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Thu, 21 Mar 2019 17:32:10 +0300 Subject: Add mobile configs --- .config/conky/conky.conf##mobile.Linux.Luchs | 87 +++++++ .config/i3/config##mobile.Linux.Luchs | 205 +++++++++++++++++ .config/polybar/config##mobile.Linux.Luchs | 326 +++++++++++++++++++++++++++ 3 files changed, 618 insertions(+) create mode 100644 .config/conky/conky.conf##mobile.Linux.Luchs create mode 100644 .config/i3/config##mobile.Linux.Luchs create mode 100644 .config/polybar/config##mobile.Linux.Luchs diff --git a/.config/conky/conky.conf##mobile.Linux.Luchs b/.config/conky/conky.conf##mobile.Linux.Luchs new file mode 100644 index 0000000..0b2b90d --- /dev/null +++ b/.config/conky/conky.conf##mobile.Linux.Luchs @@ -0,0 +1,87 @@ +conky.config = { + alignment = 'top_right', + background = true, + + draw_borders = false, + draw_graph_borders = true, + border_width = 1, + border_outer_margin = 5, + stippled_borders = 6, + + cpu_avg_samples = 2, + default_color = 'white', + default_outline_color = '#555', + default_shade_color = 'black', + draw_outline = false, + draw_shades = true, + use_xft = true, + font = 'Fira Code Medium:size=9', + + gap_x = 15, + gap_y = 35, + + minimum_height = 5, + minimum_width = 5, + net_avg_samples = 2, + no_buffers = true, + out_to_console = false, + out_to_stderr = false, + extra_newline = false, + own_window = true, + own_window_class = 'Conky', + own_window_type = 'override', + own_window_transparent = true, + own_window_hints = 'below', + short_units = true, + update_interval = 1.0, + uppercase = false, + use_spacer = 'left', + pad_percents = 2, + show_graph_scale = false, + show_graph_range = false, + double_buffer = true, + + color0 = '#e03031', + color2 = '#98971a', + color1 = '#6495ed', + color3 = '#6497b1', + color4 = '#e03031', + color5 = '#22475b', + color6 = '#6497b1', + color7 = '#e03031', + color8 = '#03396c' +} + +conky.text = [[ +${color}${alignc}$sysname $kernel on $machine +${color}${alignc}${exec whoami} @ $nodename +${color0}$hr${color} +${alignc}${color1}date ${color}${time %d %B %A} +${color1}uptime${color} $uptime${alignr}${color1}time ${color}${time %k:%M:%S} +${color0}temperatures $stippled_hr +${color1}cpu ${color}${platform coretemp.0/hwmon/hwmon2 temp 1}°C${alignr} ${color1}mobo ${color}${acpitemp}°C +${color0}processors $stippled_hr${color} +${cpubar cpu1 6,45} ${freq_g 1}GHz ${cpu cpu1}% ${alignr}${cpubar cpu2 6,45} ${freq_g 2}GHz${alignr}${cpu cpu2}% +${color0}load $stippled_hr${color} +${color1}cpu${color} ${cpubar cpu0 6, 120}${alignr}${freq_g}GHz ${cpu cpu0}% +${color1}ram${color} ${membar 6, 120}${alignr}$mem/$memmax $memperc% +${color1}swp${color} ${swapbar 6,120}${alignr}$swap/$swapmax $swapperc% +${color0}filesystem $stippled_hr${color} +${color1}~ ${color}${FS_BAR 6, 130 /home}${alignr}${fs_used /home} /${fs_size /home} ${color} +${color0}networking $stippled_hr${color} +${color1}down${color} ${downspeed enp1s0}/s${alignr}${color1}up${color} ${upspeed enp1s0}/s +${color}${alignc}${downspeedgraph enp1s0 32,150 2980b9 e74c3c -t}${color} ${upspeedgraph enp1s0 32,150 2980b9 e74c3c -t} +${color1}address${color} ${addr enp1s0}${alignr}updates ${execi 3600 checkupdates | wc -l} +${color1}inbound${color} ${tcp_portmon 1 32767 count}${color1} outbound${color} ${tcp_portmon 32768 61000 count}${alignr}${color1}all${color} ${tcp_portmon 1 65535 count} +${color0}processes $stippled_hr${color} +${color1}${alignc}name pid cpu% mem% +${color}${alignc} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1} +${color}${alignc} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2} +${color}${alignc} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4} +${color0}forecast $stippled_hr${color} +${voffset 05}${texeci 1800 curl -s wttr.in/ank | sed -n '3,7{s/\d27\[[0-9;]*m//g;s/^..//;s/ *$//;p}'} +${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} +]] diff --git a/.config/i3/config##mobile.Linux.Luchs b/.config/i3/config##mobile.Linux.Luchs new file mode 100644 index 0000000..fbd08a3 --- /dev/null +++ b/.config/i3/config##mobile.Linux.Luchs @@ -0,0 +1,205 @@ +# i3 config file (v4) +# Please see https://i3wm.org/docs/userguide.html for a complete reference! + +# set modifiers +set $mod Mod4 +set $alt Mod1 + +#autostart +exec --no-startup-id xsettingsd & +exec --no-startup-id compton -b & +exec --no-startup-id dropbox & +exec --no-startup-id copyq & +exec --no-startup-id hsetroot -center ~/Dropbox/Wallpapers/mandala.jpg & +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 + +#launch polybar +exec --no-startup-id $HOME/.config/polybar/launch.sh + +# 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 + +#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 + +exec --no-startup-id clight + +gaps inner 0 +gaps outer 0 + +# Font for window titles +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 + +# i switched back to firefox can you tell +bindsym Ctrl+q exec --no-startup-id true + +# bookmark from clipboard +bindsym $mod+u exec --no-startup-id ~/bin/bukuadd_c + +# swap caps lock and escape, set keyboard layout +bindsym $mod+p exec --no-startup-id "setxkbmap -model pc105 -layout us,tr -option grp:alt_shift_toggle,caps:swapescape" + +# use flameshot with print screen +bindsym Print exec flameshot gui + +# media keys +bindsym XF86AudioMute exec "pactl set-sink-mute @DEFAULT_SINK@ toggle" +bindsym XF86AudioRaiseVolume exec "pactl set-sink-volume @DEFAULT_SINK@ +5%" +bindsym XF86AudioLowerVolume exec "pactl set-sink-volume @DEFAULT_SINK@ -5%" +bindsym XF86AudioPlay exec mpc toggle +bindsym XF86AudioStop exec mpc stop +bindsym XF86AudioPrev exec /home/yigit/bin/mpvPrev +bindsym XF86AudioNext exec mpc next + +bindsym XF86MonBrightnessUp exec xbacklight -inc 5 +bindsym XF86MonBrightnessDown exec xbacklight -dec 5 + +# start a terminal +bindsym $mod+Return exec kitty + +# kill focused window +bindsym $mod+Shift+q kill + +# start rofi (a program launcher) +bindsym $mod+d exec rofi -show combi + +# lock screen +exec --no-startup-id xidlehook --not-when-fullscreen --not-when-audio --timer normal 300 'betterlockscreen -t "Welcome Back"' '' + +# change focus +bindsym $mod+h focus left +bindsym $mod+j focus down +bindsym $mod+k focus up +bindsym $mod+l focus right + +# move focused window +bindsym $mod+Shift+h move left +bindsym $mod+Shift+j move down +bindsym $mod+Shift+k move up +bindsym $mod+Shift+l move right + +# split in horizontal orientation +bindsym $mod+b split h + +# split in vertical orientation +bindsym $mod+v split v + +# enter fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle + +# change container layout (stacked, tabbed, toggle split) +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +# toggle tiling / floating +bindsym $mod+Shift+space floating toggle + +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle + +# focus the parent container +bindsym $mod+a focus parent + +# Define names for default workspaces for which we configure key bindings later on. +# We use variables to avoid repeating the names in multiple places. +set $ws1 "1" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" +set $ws6 "6" +set $ws7 "7" +set $ws8 "8" +set $ws9 "9" +set $ws10 "10" + +# switch to workspace +bindsym $mod+1 workspace $ws1 +bindsym $mod+2 workspace $ws2 +bindsym $mod+3 workspace $ws3 +bindsym $mod+4 workspace $ws4 +bindsym $mod+5 workspace $ws5 +bindsym $mod+6 workspace $ws6 +bindsym $mod+7 workspace $ws7 +bindsym $mod+8 workspace $ws8 +bindsym $mod+9 workspace $ws9 +bindsym $mod+0 workspace $ws10 + +# move focused container to workspace +bindsym $mod+Shift+1 move container to workspace $ws1 +bindsym $mod+Shift+2 move container to workspace $ws2 +bindsym $mod+Shift+3 move container to workspace $ws3 +bindsym $mod+Shift+4 move container to workspace $ws4 +bindsym $mod+Shift+5 move container to workspace $ws5 +bindsym $mod+Shift+6 move container to workspace $ws6 +bindsym $mod+Shift+7 move container to workspace $ws7 +bindsym $mod+Shift+8 move container to workspace $ws8 +bindsym $mod+Shift+9 move container to workspace $ws9 +bindsym $mod+Shift+0 move container to workspace $ws10 + +# reload the configuration file +bindsym $mod+Shift+c reload +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+r restart + +# resize window (you can also use the mouse for that) +mode "resize" { + # These bindings trigger as soon as you enter the resize mode + + # Pressing left will shrink the window’s width. + # Pressing right will grow the window’s width. + # Pressing up will shrink the window’s height. + # Pressing down will grow the window’s height. + bindsym h resize shrink width 10 px or 10 ppt + bindsym j resize grow height 10 px or 10 ppt + bindsym k resize shrink height 10 px or 10 ppt + bindsym l resize grow width 10 px or 10 ppt + + # back to normal: Enter or Escape or $mod+r + bindsym Return mode "default" + bindsym Caps_Lock mode "default" + bindsym $mod+r mode "default" +} + +# session +mode "(L)ock, (S)ignout, (R)eboot, (P)oweroff" { + bindsym $mod+l exec betterlockscreen -l dimblur -t "Welcome back" + bindsym $mod+r exec systemctl reboot + bindsym $mod+p exec systemctl poweroff + bindsym $mod+s exit + bindsym Escape mode "default" +} +bindsym $mod+Shift+e mode "(L)ock, (S)ignout, (R)eboot, (P)oweroff" + +bindsym $mod+r mode "resize" + +for_window [class=".*"] border pixel 3 + +assign [class="^Thunderbird$"] 8 + +# class border backgr. text indicator child_border +client.focused #458588 #285577 #ffffff #458588 #285577 +client.focused_inactive #b16286 #5f676a #ffffff #484e50 #5f676a +client.unfocused #927374 #222222 #888888 #292d2e #222222 +client.urgent #2f343a #900000 #ffffff #900000 #900000 +client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c + +client.background #ffffff + +# config +hide_edge_borders smart +workspace_auto_back_and_forth yes +focus_follows_mouse no diff --git a/.config/polybar/config##mobile.Linux.Luchs b/.config/polybar/config##mobile.Linux.Luchs new file mode 100644 index 0000000..ca43284 --- /dev/null +++ b/.config/polybar/config##mobile.Linux.Luchs @@ -0,0 +1,326 @@ +;========================================================== +; +; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ +; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ +; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ +; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ +; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ +; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ +; +;========================================================== + +[colors] +background = #0c1014 +background_alt = #0a3749 +background_modules = #fbf1c7 +foreground = #d3ebe9 +foreground_alt = #99d1ce +foreground_modules = #282828 +red = #9d0006 +green = #427b58 +yellow = #b56714 +blue = #458588 +purple = #8f3f71 +aqua = #689d6a +orange = #d65d0e +primary = #d26937 +secondary = #888ca6 +alert = #c23127 + +[bar/top] +monitor = +width = 100% +height = 20 +offset-x = 0% +offset-y = 0 +radius = 0 +override-redirect = false + +background = ${colors.background} +foreground = ${colors.foreground} + +border-top-size = 0 +border-bottom-size = 0 +border-top-color = ${colors.background} +border-bottom-color = ${colors.background} + +padding = 1 +module-margin = 1 + +font-0 = scientifica:antialias=false;0 +font-1 = Lato:size=10;1 +font-2 = Fira Code:size=10;1 +font-3 = FuraCode Nerd Font Mono:size=12;2 + +modules-left = i3 pulseaudio +modules-center = xwindow +modules-right = download upload date time backlight battery xkeyboard + +tray-position = right + +[module/backlight] +type = internal/xbacklight + +; Available tags: +;