From cc1cf1454cc2d6d07b06950924b14e409796d6c9 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Sun, 28 Mar 2021 04:21:57 -0500 Subject: [PATCH 1/2] Making some changes for laptop now named syl --- awesome/init.fnl | 8 ++++---- awesome/keybindings.fnl | 2 +- rofi/launchers-git/emoji.sh | 2 +- rofi/launchers-git/launcher.sh | 2 +- rofi/launchers-git/run.sh | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/awesome/init.fnl b/awesome/init.fnl index 304f810..48ded29 100644 --- a/awesome/init.fnl +++ b/awesome/init.fnl @@ -48,7 +48,7 @@ (beautiful.init "/home/chris/.config/awesome/theme.lua") ;; Import the bling modules and layouts -(local bling (require "bling")) +;;(local bling (require "bling")) ;; This is used later as the default terminal and editor to run. (var terminal "alacritty") @@ -71,13 +71,13 @@ (local hostname-handle (io.popen "hostname")) (local hostname (hostname-handle:read "a")) (hostname-handle:close) -(local laptop (= hostname "chris-linuxlaptop\n")) +(local laptop (= hostname "syl")) ;; Table of layouts to cover with awful.layout.inc, order matters. (set awful.layout.layouts [ - bling.layout.mstab + ;;bling.layout.mstab awful.layout.suit.tile - bling.layout.centered + ;;bling.layout.centered awful.layout.suit.floating ;; awful.layout.suit.tile.left ;; awful.layout.suit.tile.bottom diff --git a/awesome/keybindings.fnl b/awesome/keybindings.fnl index e4f3097..bab59e2 100644 --- a/awesome/keybindings.fnl +++ b/awesome/keybindings.fnl @@ -15,7 +15,7 @@ (awful.spawn.easy_async_with_shell "pamixer --get-volume-human" cb))) (awful.spawn.easy_async "cat /etc/hostname" (fn [ stdout stderr reason exit_code ] - (if (= "chris-linuxlaptop\n" stdout) + (if (= "syl" stdout) (global bwmenu "bwmenu -- -config /home/chris/.dotfiles/rofi/launchers-git/laptop.rasi") (global bwmenu "bwmenu -- -config /home/chris/.dotfiles/rofi/launchers-git/desktop.rasi")))) diff --git a/rofi/launchers-git/emoji.sh b/rofi/launchers-git/emoji.sh index 45cc84b..3af81d9 100755 --- a/rofi/launchers-git/emoji.sh +++ b/rofi/launchers-git/emoji.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -if [ $(hostname) = "chris-linuxlaptop" ]; then +if [ $(hostname) = "syl" ]; then style="laptop" #echo "this is hidpi" else diff --git a/rofi/launchers-git/launcher.sh b/rofi/launchers-git/launcher.sh index a1d9fd5..c0649bd 100755 --- a/rofi/launchers-git/launcher.sh +++ b/rofi/launchers-git/launcher.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -if [ $(hostname) = "chris-linuxlaptop" ]; then +if [ $(hostname) = "syl" ]; then style="laptop" #echo "this is hidpi" else diff --git a/rofi/launchers-git/run.sh b/rofi/launchers-git/run.sh index f7b7d9c..8bdf8f8 100755 --- a/rofi/launchers-git/run.sh +++ b/rofi/launchers-git/run.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -if [ $(hostname) = "chris-linuxlaptop" ]; then +if [ $(hostname) = "syl" ]; then style="laptop" #echo "this is hidpi" else From 35cd6475ec953f0cacdfd4a277b4e48c613781e2 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Tue, 30 Mar 2021 06:16:07 -0500 Subject: [PATCH 2/2] Adding syl --- rofi/launchers-git/windows.sh | 2 +- rofi/rofi-pass/config | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rofi/launchers-git/windows.sh b/rofi/launchers-git/windows.sh index f4af3e1..f10e75e 100755 --- a/rofi/launchers-git/windows.sh +++ b/rofi/launchers-git/windows.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -if [ $(hostname) = "chris-linuxlaptop" ]; then +if [ $(hostname) = "syl" ]; then style="laptop" #echo "this is hidpi" else diff --git a/rofi/rofi-pass/config b/rofi/rofi-pass/config index 125a1ce..9c32fd7 100644 --- a/rofi/rofi-pass/config +++ b/rofi/rofi-pass/config @@ -2,7 +2,7 @@ # which can be switched at runtime with shift+left/right # root=/path/to/root -if [ $(hostname) = "chris-linuxlaptop" ]; then +if [ $(hostname) = "syl" ]; then style="laptop" #echo "this is hidpi" else